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