You.i Engine
YiEnumBitmaskOperators.h File Reference
#include <type_traits>

Go to the source code of this file.

Classes

struct  YiEnableBitmaskOperators< E >
 A struct used to enable bitmask operators for an enum class type. More...
 

Functions

template<typename E >
constexpr std::enable_if< YiEnableBitmaskOperators< E >::enable, E >::type operator| (E a, E b)
 
template<typename E >
constexpr std::enable_if< YiEnableBitmaskOperators< E >::enable, E >::type operator & (E a, E b)
 
template<typename E >
constexpr std::enable_if< YiEnableBitmaskOperators< E >::enable, E >::type operator^ (E a, E b)
 
template<typename E >
constexpr std::enable_if< YiEnableBitmaskOperators< E >::enable, E >::type operator~ (E a)
 
template<typename E >
std::enable_if< YiEnableBitmaskOperators< E >::enable, E >::type & operator|= (E &a, E b)
 
template<typename E >
std::enable_if< YiEnableBitmaskOperators< E >::enable, E >::type & operator &= (E &a, E b)
 
template<typename E >
std::enable_if< YiEnableBitmaskOperators< E >::enable, E >::type & operator^= (E &a, E b)
 
template<typename E >
constexpr std::enable_if< YiEnableBitmaskOperators< E >::enable, bool >::type Any (E a)
 
template<typename E >
constexpr std::enable_if< YiEnableBitmaskOperators< E >::enable, bool >::type None (E a)
 
template<typename E >
constexpr std::enable_if< YiEnableBitmaskOperators< E >::enable, typename std::underlying_type< E >::type >::type ToInteger (E a)