Searched defs:custom_int (Results 1 – 5 of 5) sorted by relevance
20 struct custom_int struct23 constexpr custom_int(int value) : value_{value} {} in custom_int() argument25 custom_int operator+(custom_int x) const { return value_ + x.value_; } in operator +() argument26 custom_int operator-(custom_int x) const { return value_ - x.value_; } in operator -() argument27 custom_int operator*(custom_int x) const { return value_ * x.value_; } in operator *() argument28 custom_int operator/(custom_int x) const { return value_ / x.value_; } in operator /() argument30 custom_int& operator+=(custom_int x) { value_ += x.value_; return *this; } in operator +=() argument31 custom_int& operator-=(custom_int x) { value_ -= x.value_; return *this; } in operator -=() argument32 custom_int& operator*=(custom_int x) { value_ *= x.value_; return *this; } in operator *=() argument33 custom_int& operator/=(custom_int x) { value_ /= x.value_; return *this; } in operator /=() argument[all …]
48 struct custom_int struct51 custom_int() : n(0) {} in custom_int() argument52 explicit custom_int(int n_) : n(n_) {} in custom_int() function53 custom_int& operator=(int n_) { n = n_; return *this; } in operator =() argument
21 struct custom_int struct23 BOOST_DEFAULTED_FUNCTION(custom_int(), {}) in custom_int() function26 custom_int operator+(custom_int x) const { return value_ + x.value_; } in operator +() argument27 custom_int operator-(custom_int x) const { return value_ - x.value_; } in operator -() argument28 custom_int operator*(custom_int x) const { return value_ * x.value_; } in operator *() argument29 custom_int operator/(custom_int x) const { return value_ / x.value_; } in operator /() argument31 custom_int& operator+=(custom_int x) { value_ += x.value_; return *this; } in operator +=() argument32 custom_int& operator-=(custom_int x) { value_ -= x.value_; return *this; } in operator -=() argument33 custom_int& operator*=(custom_int x) { value_ *= x.value_; return *this; } in operator *=() argument34 custom_int& operator/=(custom_int x) { value_ /= x.value_; return *this; } in operator /=() argument[all …]
67 struct custom_int struct70 custom_int() : n(0) {} in custom_int() argument71 explicit custom_int(int n_) : n(n_) {} in custom_int() function72 custom_int& operator=(int n_) { n = n_; return *this; } in operator =() argument
34 custom_int_type& custom_int() { return m_int; } in custom_int() function in all_custom_polygon37 custom_int_type const& custom_int() const { return m_int; } in custom_int() function in all_custom_polygon