Lines Matching defs:partial_ordering
34 class partial_ordering;
54 class partial_ordering {
55 _LIBCPP_HIDE_FROM_ABI explicit constexpr partial_ordering(_PartialOrdResult __v) noexcept : __value_(__v) {}
59 static const partial_ordering less;
60 static const partial_ordering equivalent;
61 static const partial_ordering greater;
62 static const partial_ordering unordered;
65 _LIBCPP_HIDE_FROM_ABI friend constexpr bool operator==(partial_ordering, partial_ordering) noexcept = default;
67 _LIBCPP_HIDE_FROM_ABI friend constexpr bool operator==(partial_ordering __v, _CmpUnspecifiedParam) noexcept {
71 _LIBCPP_HIDE_FROM_ABI friend constexpr bool operator<(partial_ordering __v, _CmpUnspecifiedParam) noexcept {
75 _LIBCPP_HIDE_FROM_ABI friend constexpr bool operator<=(partial_ordering __v, _CmpUnspecifiedParam) noexcept {
79 _LIBCPP_HIDE_FROM_ABI friend constexpr bool operator>(partial_ordering __v, _CmpUnspecifiedParam) noexcept {
83 _LIBCPP_HIDE_FROM_ABI friend constexpr bool operator>=(partial_ordering __v, _CmpUnspecifiedParam) noexcept {
87 _LIBCPP_HIDE_FROM_ABI friend constexpr bool operator<(_CmpUnspecifiedParam, partial_ordering __v) noexcept {
91 _LIBCPP_HIDE_FROM_ABI friend constexpr bool operator<=(_CmpUnspecifiedParam, partial_ordering __v) noexcept {
95 _LIBCPP_HIDE_FROM_ABI friend constexpr bool operator>(_CmpUnspecifiedParam, partial_ordering __v) noexcept {
99 _LIBCPP_HIDE_FROM_ABI friend constexpr bool operator>=(_CmpUnspecifiedParam, partial_ordering __v) noexcept {
103 _LIBCPP_HIDE_FROM_ABI friend constexpr partial_ordering
104 operator<=>(partial_ordering __v, _CmpUnspecifiedParam) noexcept {
108 _LIBCPP_HIDE_FROM_ABI friend constexpr partial_ordering
109 operator<=>(_CmpUnspecifiedParam, partial_ordering __v) noexcept {
110 return __v < 0 ? partial_ordering::greater : (__v > 0 ? partial_ordering::less : __v);
117 inline constexpr partial_ordering partial_ordering::less(_PartialOrdResult::__less);
118 inline constexpr partial_ordering partial_ordering::equivalent(_PartialOrdResult::__equiv);
119 inline constexpr partial_ordering partial_ordering::greater(_PartialOrdResult::__greater);
120 inline constexpr partial_ordering partial_ordering::unordered(_PartialOrdResult::__unordered);
132 _LIBCPP_HIDE_FROM_ABI constexpr operator partial_ordering() const noexcept {
133 return __value_ == 0 ? partial_ordering::equivalent
134 : (__value_ < 0 ? partial_ordering::less : partial_ordering::greater);
204 _LIBCPP_HIDE_FROM_ABI constexpr operator partial_ordering() const noexcept {
205 return __value_ == 0 ? partial_ordering::equivalent
206 : (__value_ < 0 ? partial_ordering::less : partial_ordering::greater);
272 /// The types partial_ordering, weak_ordering, and strong_ordering are
276 is_same_v<_Tp, partial_ordering> || is_same_v<_Tp, weak_ordering> || is_same_v<_Tp, strong_ordering>;