5#define _SW_ENUM_ENABLE_BIT_OPERATIONS(T) \
7 struct _EnumSupportBitOperations<T> : std::true_type { \
26 using TUnderlying =
typename std::underlying_type<T>::type;
47 using TUnderlying =
typename std::underlying_type<T>::type;
68 using TUnderlying =
typename std::underlying_type<T>::type;
89 using TUnderlying =
typename std::underlying_type<T>::type;
值转换器接口
Definition IValueConverter.h:14
SimpleWindow框架的顶级命名空间,所有公共类型、控件、枚举和工具函数均定义于此。
Definition Alignment.h:4
constexpr auto operator|=(T &a, T b) -> typename std::enable_if< std::is_enum< T >::value &&_EnumSupportBitOperations< T >::value, T & >::type
为标记_EnumSupportBitOperations的枚举类型提供按位或赋值运算
Definition EnumBit.h:34
constexpr auto operator~(T a) -> typename std::enable_if< std::is_enum< T >::value &&_EnumSupportBitOperations< T >::value, T >::type
为标记_EnumSupportBitOperations的枚举类型提供按位取反运算
Definition EnumBit.h:86
constexpr auto operator&=(T &a, T b) -> typename std::enable_if< std::is_enum< T >::value &&_EnumSupportBitOperations< T >::value, T & >::type
为标记_EnumSupportBitOperations的枚举类型提供按位与赋值运算
Definition EnumBit.h:55
constexpr auto operator&(T a, T b) -> typename std::enable_if< std::is_enum< T >::value &&_EnumSupportBitOperations< T >::value, T >::type
为标记_EnumSupportBitOperations的枚举类型提供按位与运算
Definition EnumBit.h:44
constexpr auto operator^(T a, T b) -> typename std::enable_if< std::is_enum< T >::value &&_EnumSupportBitOperations< T >::value, T >::type
为标记_EnumSupportBitOperations的枚举类型提供按位异或运算
Definition EnumBit.h:65
constexpr auto operator|(T a, T b) -> typename std::enable_if< std::is_enum< T >::value &&_EnumSupportBitOperations< T >::value, T >::type
为标记_EnumSupportBitOperations的枚举类型提供按位或运算
Definition EnumBit.h:23
constexpr auto operator^=(T &a, T b) -> typename std::enable_if< std::is_enum< T >::value &&_EnumSupportBitOperations< T >::value, T & >::type
为标记_EnumSupportBitOperations的枚举类型提供按位异或赋值运算
Definition EnumBit.h:76
用于标记枚举是否支持位运算
Definition EnumBit.h:16