Lines Matching refs:weak_ordering
35 class weak_ordering; variable
45 …template<class _Tp, class = enable_if_t<!__one_of_v<_Tp, int, partial_ordering, weak_ordering, str…
138 class weak_ordering {
142 explicit constexpr weak_ordering(_OrdResult __v) noexcept : __value_(_ValueT(__v)) {} in weak_ordering() function
145 static const weak_ordering less;
146 static const weak_ordering equivalent;
147 static const weak_ordering greater;
157 friend constexpr bool operator==(weak_ordering, weak_ordering) noexcept = default;
160 friend constexpr bool operator==(weak_ordering __v, _CmpUnspecifiedParam) noexcept {
165 friend constexpr bool operator< (weak_ordering __v, _CmpUnspecifiedParam) noexcept {
170 friend constexpr bool operator<=(weak_ordering __v, _CmpUnspecifiedParam) noexcept {
175 friend constexpr bool operator> (weak_ordering __v, _CmpUnspecifiedParam) noexcept {
180 friend constexpr bool operator>=(weak_ordering __v, _CmpUnspecifiedParam) noexcept {
185 friend constexpr bool operator< (_CmpUnspecifiedParam, weak_ordering __v) noexcept {
190 friend constexpr bool operator<=(_CmpUnspecifiedParam, weak_ordering __v) noexcept {
195 friend constexpr bool operator> (_CmpUnspecifiedParam, weak_ordering __v) noexcept {
200 friend constexpr bool operator>=(_CmpUnspecifiedParam, weak_ordering __v) noexcept {
205 friend constexpr weak_ordering operator<=>(weak_ordering __v, _CmpUnspecifiedParam) noexcept {
210 friend constexpr weak_ordering operator<=>(_CmpUnspecifiedParam, weak_ordering __v) noexcept {
211 return __v < 0 ? weak_ordering::greater : (__v > 0 ? weak_ordering::less : __v);
218 inline constexpr weak_ordering weak_ordering::less(_OrdResult::__less);
219 inline constexpr weak_ordering weak_ordering::equivalent(_OrdResult::__equiv);
220 inline constexpr weak_ordering weak_ordering::greater(_OrdResult::__greater);
242 constexpr operator weak_ordering() const noexcept { in weak_ordering() function
243 return __value_ == 0 ? weak_ordering::equivalent in weak_ordering()
244 : (__value_ < 0 ? weak_ordering::less : weak_ordering::greater); in weak_ordering()