• Home
  • Raw
  • Download

Lines Matching refs:E

36 template<class E>
39 std::is_enum<E>::value && !std::is_convertible<E, int>::value>;
41 template <class E>
42 using underlying_enum_type = typename std::underlying_type<E>::type;
44 template <class E, class Res = E>
46 typename std::enable_if<is_scoped_enum<E>::value, Res>::type;
48 template <class E>
49 enable_if_scoped_enum<E> operator|(E l, E r) {
50 return static_cast<E>(static_cast<underlying_enum_type<E>>(l)
51 | static_cast<underlying_enum_type<E>>(r));
54 template <class E>
55 enable_if_scoped_enum<E> operator&(E l, E r) {
56 return static_cast<E>(static_cast<underlying_enum_type<E>>(l)
57 & static_cast<underlying_enum_type<E>>(r));
60 template <class E>
61 enable_if_scoped_enum<E> operator~(E e) {
62 return static_cast<E>(~static_cast<underlying_enum_type<E>>(e));
65 template <class E>
66 enable_if_scoped_enum<E> operator|=(E& l, E r) {
70 template <class E>
71 enable_if_scoped_enum<E> operator&=(E& l, E r) {
75 template <class E>
76 enable_if_scoped_enum<E, bool> operator!(E e) {
77 return !static_cast<underlying_enum_type<E>>(e);
80 template <class E>
81 enable_if_scoped_enum<E, bool> operator!=(E e, int val) {
82 return static_cast<underlying_enum_type<E>>(e) !=
83 static_cast<underlying_enum_type<E>>(val);
86 template <class E>
87 enable_if_scoped_enum<E, bool> operator!=(int val, E e) {
91 template <class E>
92 enable_if_scoped_enum<E, bool> operator==(E e, int val) {
93 return static_cast<underlying_enum_type<E>>(e) ==
94 static_cast<underlying_enum_type<E>>(val);
97 template <class E>
98 enable_if_scoped_enum<E, bool> operator==(int val, E e) {
102 template <class E>
103 enable_if_scoped_enum<E, bool> nonzero(E e) { in nonzero()
104 return static_cast<underlying_enum_type<E>>(e) != 0; in nonzero()