Operators available to elements of enumerations if IterableTraits is specialized.
Function Index: | |
| template<typename TEnum, typename TRhs = int> requires ( alib::enumops::IsIterable<TEnum> && std::integral<TRhs> ) | |
| ALIB_EXPORT constexpr TEnum | operator+ (TEnum element, TRhs summand) noexcept |
| template<typename TEnum, typename TRhs = int> requires ( alib::enumops::IsIterable<TEnum> && std::integral<TRhs> ) | |
| ALIB_EXPORT constexpr TEnum | operator- (TEnum element, typename std::underlying_type< TEnum >::type subtrahend) noexcept |
|
constexprnoexcept |
Add operator usable with scoped enum types and integral values.
Selected by the compiler only if IterableTraits is specialized for enum type TEnum.
| TEnum | Enumeration type. |
| TRhs | The type of the summand. |
| element | First operand of TEnum type. |
| summand | The summand. |
Definition at line 114 of file iterable.inl.
|
constexprnoexcept |
Subtract operator usable with scoped enum types and integral values.
Selected by the compiler only if IterableTraits is specialized for enum type TEnum.
| TEnum | Enumeration type. |
| TRhs | The type of the subtrahend. |
| element | First operand of TEnum type. |
| subtrahend | The subtrahend. |
Definition at line 133 of file iterable.inl.