#include <type_traits>
Go to the source code of this file.
|
template<typename T > |
constexpr bool | IsEnumFlag (T) |
|
template<typename T , std::enable_if_t< EnumTraits::IsFlag< T >::value, std::nullptr_t > = nullptr> |
constexpr T | operator& (T left, T right) |
|
template<typename T , std::enable_if_t< EnumTraits::IsFlag< T >::value, std::nullptr_t > = nullptr> |
constexpr T & | operator&= (T &left, T right) |
|
template<typename T , std::enable_if_t< EnumTraits::IsFlag< T >::value, std::nullptr_t > = nullptr> |
constexpr T | operator| (T left, T right) |
|
template<typename T , std::enable_if_t< EnumTraits::IsFlag< T >::value, std::nullptr_t > = nullptr> |
constexpr T & | operator|= (T &left, T right) |
|
template<typename T , std::enable_if_t< EnumTraits::IsFlag< T >::value, std::nullptr_t > = nullptr> |
constexpr T | operator~ (T value) |
|
◆ DEFINE_ENUM_FLAG
#define DEFINE_ENUM_FLAG |
( |
|
enumType | ) |
constexpr bool IsEnumFlag(enumType) { return true; } |
◆ IsEnumFlag()
template<typename T >
constexpr bool IsEnumFlag |
( |
T |
| ) |
|
|
constexpr |
◆ operator&()
template<typename T , std::enable_if_t<
EnumTraits::IsFlag< T >::value, std::nullptr_t > = nullptr>
constexpr T operator& |
( |
T |
left, |
|
|
T |
right |
|
) |
| |
|
inlineconstexpr |
◆ operator&=()
template<typename T , std::enable_if_t<
EnumTraits::IsFlag< T >::value, std::nullptr_t > = nullptr>
constexpr T & operator&= |
( |
T & |
left, |
|
|
T |
right |
|
) |
| |
|
inlineconstexpr |
◆ operator|()
template<typename T , std::enable_if_t<
EnumTraits::IsFlag< T >::value, std::nullptr_t > = nullptr>
constexpr T operator| |
( |
T |
left, |
|
|
T |
right |
|
) |
| |
|
inlineconstexpr |
◆ operator|=()
template<typename T , std::enable_if_t<
EnumTraits::IsFlag< T >::value, std::nullptr_t > = nullptr>
constexpr T & operator|= |
( |
T & |
left, |
|
|
T |
right |
|
) |
| |
|
inlineconstexpr |
◆ operator~()
template<typename T , std::enable_if_t<
EnumTraits::IsFlag< T >::value, std::nullptr_t > = nullptr>
constexpr T operator~ |
( |
T |
value | ) |
|
|
inlineconstexpr |