Searched refs:custom_int (Results 1 – 8 of 8) sorted by relevance
/third_party/boost/libs/spirit/test/x3/ |
D | extract_int.cpp | 20 struct custom_int struct 22 custom_int() = default; 23 constexpr custom_int(int value) : value_{value} {} in custom_int() function 25 custom_int operator+(custom_int x) const { return value_ + x.value_; } in operator +() argument 26 custom_int operator-(custom_int x) const { return value_ - x.value_; } in operator -() argument 27 custom_int operator*(custom_int x) const { return value_ * x.value_; } in operator *() argument 28 custom_int operator/(custom_int x) const { return value_ / x.value_; } in operator /() argument 30 custom_int& operator+=(custom_int x) { value_ += x.value_; return *this; } in operator +=() argument 31 custom_int& operator-=(custom_int x) { value_ -= x.value_; return *this; } in operator -=() argument 32 custom_int& operator*=(custom_int x) { value_ *= x.value_; return *this; } in operator *=() argument [all …]
|
D | int.hpp | 48 struct custom_int struct 51 custom_int() : n(0) {} in custom_int() function 52 explicit custom_int(int n_) : n(n_) {} in custom_int() argument 53 custom_int& operator=(int n_) { n = n_; return *this; } in operator =() argument 54 friend bool operator==(custom_int a, custom_int b) { return a.n == b.n; } in operator ==() 55 friend bool operator==(custom_int a, int b) { return a.n == b; } in operator ==() 56 friend custom_int operator*(custom_int a, custom_int b) { return custom_int(a.n * b.n); } in operator *() 57 friend custom_int operator+(custom_int a, custom_int b) { return custom_int(a.n + b.n); } in operator +() 58 friend custom_int operator-(custom_int a, custom_int b) { return custom_int(a.n - b.n); } in operator -()
|
D | int1.cpp | 177 custom_int i; in main() 180 int_parser<custom_int, 10, 1, 2> int2; in main()
|
/third_party/boost/libs/spirit/test/qi/ |
D | int.hpp | 67 struct custom_int struct 70 custom_int() : n(0) {} in custom_int() function 71 explicit custom_int(int n_) : n(n_) {} in custom_int() argument 72 custom_int& operator=(int n_) { n = n_; return *this; } in operator =() argument 73 friend bool operator==(custom_int a, custom_int b) { return a.n == b.n; } in operator ==() 74 friend bool operator==(custom_int a, int b) { return a.n == b; } in operator ==() 75 friend custom_int operator*(custom_int a, custom_int b) { return custom_int(a.n * b.n); } in operator *() 76 friend custom_int operator+(custom_int a, custom_int b) { return custom_int(a.n + b.n); } in operator +() 77 friend custom_int operator-(custom_int a, custom_int b) { return custom_int(a.n - b.n); } in operator -()
|
D | extract_int.cpp | 21 struct custom_int struct 23 BOOST_DEFAULTED_FUNCTION(custom_int(), {}) in custom_int() function 24 BOOST_CONSTEXPR custom_int(int value) : value_(value) {} 26 custom_int operator+(custom_int x) const { return value_ + x.value_; } in operator +() argument 27 custom_int operator-(custom_int x) const { return value_ - x.value_; } in operator -() argument 28 custom_int operator*(custom_int x) const { return value_ * x.value_; } in operator *() argument 29 custom_int operator/(custom_int x) const { return value_ / x.value_; } in operator /() argument 31 custom_int& operator+=(custom_int x) { value_ += x.value_; return *this; } in operator +=() argument 32 custom_int& operator-=(custom_int x) { value_ -= x.value_; return *this; } in operator -=() argument 33 custom_int& operator*=(custom_int x) { value_ *= x.value_; return *this; } in operator *=() argument [all …]
|
D | int1.cpp | 165 custom_int i; in main() 168 int_parser<custom_int, 10, 1, 2> int2; in main()
|
D | int3.cpp | 171 custom_int i; in main() 174 int_parser<custom_int, 10, 1, 2> int2; in main()
|
/third_party/boost/libs/geometry/test/test_geometries/ |
D | all_custom_polygon.hpp | 34 custom_int_type& custom_int() { return m_int; } in custom_int() function in all_custom_polygon 37 custom_int_type const& custom_int() const { return m_int; } in custom_int() function in all_custom_polygon 112 return p.custom_int(); in get() 117 return p.custom_int(); in get()
|