Lines Matching defs:operator
45 constexpr bool operator==(EnumSet set) const { return bits_ == set.bits_; }
46 constexpr bool operator!=(EnumSet set) const { return bits_ != set.bits_; }
48 constexpr EnumSet operator|(EnumSet set) const {
51 constexpr EnumSet operator&(EnumSet set) const {
54 constexpr EnumSet operator-(EnumSet set) const {
58 EnumSet& operator|=(EnumSet set) { return *this = *this | set; }
59 EnumSet& operator&=(EnumSet set) { return *this = *this & set; }
60 EnumSet& operator-=(EnumSet set) { return *this = *this - set; }
62 constexpr EnumSet operator|(E element) const {
65 constexpr EnumSet operator&(E element) const {
68 constexpr EnumSet operator-(E element) const {
72 EnumSet& operator|=(E element) { return *this = *this | element; }
73 EnumSet& operator&=(E element) { return *this = *this & element; }
74 EnumSet& operator-=(E element) { return *this = *this - element; }