Operators available to elements of enumerations if T_EnumIsIterable is specialized.
Function Index: | |
| template<typename TEnum , typename TRhs = int> | |
| constexpr TEnum | operator+ (TEnum element, TRhs summand) noexcept |
| template<typename TEnum , typename TRhs = int> | |
| constexpr TEnum | operator- (TEnum element, TRhs subtrahend) noexcept |
|
constexprnoexcept |
Add operator usable with scoped enum types and integral values.
Selected by the compiler only if T_EnumIsIterable is specialized for enum type TEnum.
| TEnum | Enumeration type. |
| TRhs | The type of the summand. |
| element | First operand of TEnum type. |
| summand | The summand. |
|
constexprnoexcept |
Subtract operator usable with scoped enum types and integral values.
Selected by the compiler only if T_EnumIsIterable is specialized for enum type TEnum.
| TEnum | Enumeration type. |
| TRhs | The type of the subtrahend. |
| element | First operand of TEnum type. |
| subtrahend | The subtrahend. |