Lines Matching refs:partial_ordering
20 class partial_ordering;
27 constexpr bool is_lt (partial_ordering cmp) noexcept { return cmp < 0; }
28 constexpr bool is_lteq(partial_ordering cmp) noexcept { return cmp <= 0; }
29 constexpr bool is_gt (partial_ordering cmp) noexcept { return cmp > 0; }
30 constexpr bool is_gteq(partial_ordering cmp) noexcept { return cmp >= 0; }
43 template<class T> constexpr partial_ordering partial_order(const T& a, const T& b);
47 // [cmp.partialord], Class partial_ordering
48 class partial_ordering {
51 static const partial_ordering less;
52 static const partial_ordering equivalent;
53 static const partial_ordering greater;
54 static const partial_ordering unordered;
57 friend constexpr bool operator==(partial_ordering v, unspecified) noexcept;
58 friend constexpr bool operator==(partial_ordering v, partial_ordering w) noexcept = default;
59 friend constexpr bool operator< (partial_ordering v, unspecified) noexcept;
60 friend constexpr bool operator> (partial_ordering v, unspecified) noexcept;
61 friend constexpr bool operator<=(partial_ordering v, unspecified) noexcept;
62 friend constexpr bool operator>=(partial_ordering v, unspecified) noexcept;
63 friend constexpr bool operator< (unspecified, partial_ordering v) noexcept;
64 friend constexpr bool operator> (unspecified, partial_ordering v) noexcept;
65 friend constexpr bool operator<=(unspecified, partial_ordering v) noexcept;
66 friend constexpr bool operator>=(unspecified, partial_ordering v) noexcept;
67 friend constexpr partial_ordering operator<=>(partial_ordering v, unspecified) noexcept;
68 friend constexpr partial_ordering operator<=>(unspecified, partial_ordering v) noexcept;
80 constexpr operator partial_ordering() const noexcept;
107 constexpr operator partial_ordering() const noexcept;
289 class partial_ordering {
293 explicit constexpr partial_ordering(_EqResult __v) noexcept
297 explicit constexpr partial_ordering(_OrdResult __v) noexcept
301 explicit constexpr partial_ordering(_NCmpResult __v) noexcept
309 static const partial_ordering less;
310 static const partial_ordering equivalent;
311 static const partial_ordering greater;
312 static const partial_ordering unordered;
320 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator==(partial_ordering __v, _CmpUnspecifiedPa…
321 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator!=(partial_ordering __v, _CmpUnspecifiedPa…
322 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator< (partial_ordering __v, _CmpUnspecifiedPa…
323 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator<=(partial_ordering __v, _CmpUnspecifiedPa…
324 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator> (partial_ordering __v, _CmpUnspecifiedPa…
325 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator>=(partial_ordering __v, _CmpUnspecifiedPa…
326 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator==(_CmpUnspecifiedParam, partial_ordering …
327 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator!=(_CmpUnspecifiedParam, partial_ordering …
328 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator< (_CmpUnspecifiedParam, partial_ordering …
329 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator<=(_CmpUnspecifiedParam, partial_ordering …
330 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator> (_CmpUnspecifiedParam, partial_ordering …
331 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator>=(_CmpUnspecifiedParam, partial_ordering …
334 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator==(partial_ordering, partial_ordering) noe…
336 …_LIBCPP_INLINE_VISIBILITY friend constexpr partial_ordering operator<=>(partial_ordering __v, _Cmp…
337 …_LIBCPP_INLINE_VISIBILITY friend constexpr partial_ordering operator<=>(_CmpUnspecifiedParam, part…
344 _LIBCPP_INLINE_VAR constexpr partial_ordering partial_ordering::less(_OrdResult::__less);
345 _LIBCPP_INLINE_VAR constexpr partial_ordering partial_ordering::equivalent(_EqResult::__equiv);
346 _LIBCPP_INLINE_VAR constexpr partial_ordering partial_ordering::greater(_OrdResult::__greater);
347 _LIBCPP_INLINE_VAR constexpr partial_ordering partial_ordering::unordered(_NCmpResult ::__unordered…
350 constexpr bool operator==(partial_ordering __v, _CmpUnspecifiedParam) noexcept {
354 constexpr bool operator< (partial_ordering __v, _CmpUnspecifiedParam) noexcept {
358 constexpr bool operator<=(partial_ordering __v, _CmpUnspecifiedParam) noexcept {
362 constexpr bool operator> (partial_ordering __v, _CmpUnspecifiedParam) noexcept {
366 constexpr bool operator>=(partial_ordering __v, _CmpUnspecifiedParam) noexcept {
371 constexpr bool operator==(_CmpUnspecifiedParam, partial_ordering __v) noexcept {
375 constexpr bool operator< (_CmpUnspecifiedParam, partial_ordering __v) noexcept {
379 constexpr bool operator<=(_CmpUnspecifiedParam, partial_ordering __v) noexcept {
383 constexpr bool operator> (_CmpUnspecifiedParam, partial_ordering __v) noexcept {
387 constexpr bool operator>=(_CmpUnspecifiedParam, partial_ordering __v) noexcept {
392 constexpr bool operator!=(partial_ordering __v, _CmpUnspecifiedParam) noexcept {
396 constexpr bool operator!=(_CmpUnspecifiedParam, partial_ordering __v) noexcept {
402 constexpr partial_ordering operator<=>(partial_ordering __v, _CmpUnspecifiedParam) noexcept {
406 constexpr partial_ordering operator<=>(_CmpUnspecifiedParam, partial_ordering __v) noexcept {
407 return __v < 0 ? partial_ordering::greater : (__v > 0 ? partial_ordering::less : __v);
432 constexpr operator partial_ordering() const noexcept {
433 return __value_ == 0 ? partial_ordering::equivalent
434 : (__value_ < 0 ? partial_ordering::less : partial_ordering::greater);
554 constexpr operator partial_ordering() const noexcept {
555 return __value_ == 0 ? partial_ordering::equivalent
556 : (__value_ < 0 ? partial_ordering::less : partial_ordering::greater);
663 constexpr bool is_lt(partial_ordering __cmp) noexcept { return __cmp < 0; }
666 constexpr bool is_lteq(partial_ordering __cmp) noexcept { return __cmp <= 0; }
669 constexpr bool is_gt(partial_ordering __cmp) noexcept { return __cmp > 0; }
672 constexpr bool is_gteq(partial_ordering __cmp) noexcept { return __cmp >= 0; }
693 if (is_same_v<_Tp, partial_ordering>)
736 return partial_ordering::equivalent;
759 template<class _Tp> constexpr partial_ordering partial_order(const _Tp& __lhs, const _Tp& __rhs);