Lines Matching defs:MyInteger
130 struct MyInteger { struct
131 integer i;
132 explicit constexpr MyInteger(integer i) : i(i) {} in MyInteger() function
133 constexpr operator integer() const { return i; } in operator integer()
135 constexpr MyInteger operator+(MyInteger other) const { return i + other.i; } in operator +()
136 constexpr MyInteger operator-(MyInteger other) const { return i - other.i; } in operator -()
137 constexpr MyInteger operator*(MyInteger other) const { return i * other.i; } in operator *()
138 constexpr MyInteger operator/(MyInteger other) const { return i / other.i; } in operator /()
140 constexpr bool operator<(MyInteger other) const { return i < other.i; } in operator <()
141 constexpr bool operator<=(MyInteger other) const { return i <= other.i; } in operator <=()
142 constexpr bool operator==(MyInteger other) const { return i == other.i; } in operator ==()
143 constexpr bool operator>=(MyInteger other) const { return i >= other.i; } in operator >=()
144 constexpr bool operator>(MyInteger other) const { return i > other.i; } in operator >()
145 constexpr bool operator!=(MyInteger other) const { return i != other.i; } in operator !=()
147 integer as_integer() const { return i; } in as_integer()