Searched defs:MyInteger (Results 1 – 3 of 3) sorted by relevance
28 class MyInteger { class44 MyInteger() : m_pValue(new int(0)) { check_exception(); } in MyInteger() function in MyInteger45 MyInteger(int i) : m_pValue(new int(i)) { check_exception(); } in MyInteger() function in MyInteger46 MyInteger(const MyInteger& src) : m_pValue(new int(src)) { check_exception(); } in MyInteger() function in MyInteger
130 struct MyInteger { struct131 integer i;132 explicit constexpr MyInteger(integer i) : i(i) {} in MyInteger() argument133 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 <=()[all …]