10#define _SW_ENUM_ENABLE_BIT_OPERATIONS(T) \
12 struct _EnumSupportBitOperations<T> : std::true_type { \
37 using TUnderlying =
typename std::underlying_type<T>::type;
66 using TUnderlying =
typename std::underlying_type<T>::type;
95 using TUnderlying =
typename std::underlying_type<T>::type;
106 template <
typename T>
119 template <
typename T>
123 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:49
constexpr auto operator~(T a) -> typename std::enable_if< std::is_enum< T >::value &&_EnumSupportBitOperations< T >::value, T >::type
为标记_EnumSupportBitOperations的枚举类型提供按位取反运算
Definition EnumBit.h:120
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:78
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:63
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:92
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, T b) -> typename std::enable_if< std::is_enum< T >::value &&_EnumSupportBitOperations< T >::value, T & >::type
为标记_EnumSupportBitOperations的枚举类型提供按位异或赋值运算
Definition EnumBit.h:107
用于标记枚举是否支持位运算
Definition EnumBit.h:23