Lines Matching refs:weak_ordering

119 class weak_ordering {
121 explicit constexpr weak_ordering(_EqResult __v) noexcept : __value_(_ValueT(__v)) {} in weak_ordering() function
122 explicit constexpr weak_ordering(_OrdResult __v) noexcept : __value_(_ValueT(__v)) {} in weak_ordering() function
125 static const weak_ordering less;
126 static const weak_ordering equivalent;
127 static const weak_ordering greater;
136 friend constexpr bool operator==(weak_ordering __v, _CmpUnspecifiedParam) noexcept;
137 friend constexpr bool operator!=(weak_ordering __v, _CmpUnspecifiedParam) noexcept;
138 friend constexpr bool operator<(weak_ordering __v, _CmpUnspecifiedParam) noexcept;
139 friend constexpr bool operator<=(weak_ordering __v, _CmpUnspecifiedParam) noexcept;
140 friend constexpr bool operator>(weak_ordering __v, _CmpUnspecifiedParam) noexcept;
141 friend constexpr bool operator>=(weak_ordering __v, _CmpUnspecifiedParam) noexcept;
142 friend constexpr bool operator==(_CmpUnspecifiedParam, weak_ordering __v) noexcept;
143 friend constexpr bool operator!=(_CmpUnspecifiedParam, weak_ordering __v) noexcept;
144 friend constexpr bool operator<(_CmpUnspecifiedParam, weak_ordering __v) noexcept;
145 friend constexpr bool operator<=(_CmpUnspecifiedParam, weak_ordering __v) noexcept;
146 friend constexpr bool operator>(_CmpUnspecifiedParam, weak_ordering __v) noexcept;
147 friend constexpr bool operator>=(_CmpUnspecifiedParam, weak_ordering __v) noexcept;
149 friend constexpr weak_ordering operator<=>(weak_ordering __v, _CmpUnspecifiedParam) noexcept;
150 friend constexpr weak_ordering operator<=>(_CmpUnspecifiedParam, weak_ordering __v) noexcept;
153 constexpr bool test_eq(weak_ordering const &other) const noexcept { in test_eq()
161 inline constexpr weak_ordering weak_ordering::less(_OrdResult::__less);
162 inline constexpr weak_ordering weak_ordering::equivalent(_EqResult::__equiv);
163 inline constexpr weak_ordering weak_ordering::greater(_OrdResult::__greater);
164 constexpr bool operator==(weak_ordering __v, _CmpUnspecifiedParam) noexcept {
167 constexpr bool operator!=(weak_ordering __v, _CmpUnspecifiedParam) noexcept {
170 constexpr bool operator<(weak_ordering __v, _CmpUnspecifiedParam) noexcept {
173 constexpr bool operator<=(weak_ordering __v, _CmpUnspecifiedParam) noexcept {
176 constexpr bool operator>(weak_ordering __v, _CmpUnspecifiedParam) noexcept {
179 constexpr bool operator>=(weak_ordering __v, _CmpUnspecifiedParam) noexcept {
182 constexpr bool operator==(_CmpUnspecifiedParam, weak_ordering __v) noexcept {
185 constexpr bool operator!=(_CmpUnspecifiedParam, weak_ordering __v) noexcept {
188 constexpr bool operator<(_CmpUnspecifiedParam, weak_ordering __v) noexcept {
191 constexpr bool operator<=(_CmpUnspecifiedParam, weak_ordering __v) noexcept {
194 constexpr bool operator>(_CmpUnspecifiedParam, weak_ordering __v) noexcept {
197 constexpr bool operator>=(_CmpUnspecifiedParam, weak_ordering __v) noexcept {
201 constexpr weak_ordering operator<=>(weak_ordering __v, _CmpUnspecifiedParam) noexcept {
204 constexpr weak_ordering operator<=>(_CmpUnspecifiedParam, weak_ordering __v) noexcept {
205 return __v < 0 ? weak_ordering::greater : (__v > 0 ? weak_ordering::less : __v);
224 constexpr operator weak_ordering() const noexcept { in weak_ordering() function
225 return __value_ == 0 ? weak_ordering::equivalent in weak_ordering()
226 : (__value_ < 0 ? weak_ordering::less : weak_ordering::greater); in weak_ordering()