• Home
  • Raw
  • Download

Lines Matching refs:constexpr

26   constexpr bool is_eq  (weak_equality cmp) noexcept    { return cmp == 0; }
27 constexpr bool is_neq (weak_equality cmp) noexcept { return cmp != 0; }
28 constexpr bool is_lt (partial_ordering cmp) noexcept { return cmp < 0; }
29 constexpr bool is_lteq(partial_ordering cmp) noexcept { return cmp <= 0; }
30 constexpr bool is_gt (partial_ordering cmp) noexcept { return cmp > 0; }
31 constexpr bool is_gteq(partial_ordering cmp) noexcept { return cmp >= 0; }
42 template<class T> constexpr strong_ordering strong_order(const T& a, const T& b);
43 template<class T> constexpr weak_ordering weak_order(const T& a, const T& b);
44 template<class T> constexpr partial_ordering partial_order(const T& a, const T& b);
45 template<class T> constexpr strong_equality strong_equal(const T& a, const T& b);
46 template<class T> constexpr weak_equality weak_equal(const T& a, const T& b);
85 constexpr explicit weak_equality(_EqResult __val) noexcept : __value_(__val) {}
91 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator==(weak_equality __v, _CmpUnspecifiedParam…
92 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator==(_CmpUnspecifiedParam, weak_equality __v…
93 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator!=(weak_equality __v, _CmpUnspecifiedParam…
94 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator!=(_CmpUnspecifiedParam, weak_equality __v…
97 …_LIBCPP_INLINE_VISIBILITY friend constexpr weak_equality operator<=>(weak_equality __v, _CmpUnspec…
98 …_LIBCPP_INLINE_VISIBILITY friend constexpr weak_equality operator<=>(_CmpUnspecifiedParam, weak_eq…
105 _LIBCPP_INLINE_VAR constexpr weak_equality weak_equality::equivalent(_EqResult::__equiv);
106 _LIBCPP_INLINE_VAR constexpr weak_equality weak_equality::nonequivalent(_EqResult::__nonequiv);
109 inline constexpr bool operator==(weak_equality __v, _CmpUnspecifiedParam) noexcept {
114 inline constexpr bool operator==(_CmpUnspecifiedParam, weak_equality __v) noexcept {
119 inline constexpr bool operator!=(weak_equality __v, _CmpUnspecifiedParam) noexcept {
124 inline constexpr bool operator!=(_CmpUnspecifiedParam, weak_equality __v) noexcept {
130 inline constexpr weak_equality operator<=>(weak_equality __v, _CmpUnspecifiedParam) noexcept {
135 inline constexpr weak_equality operator<=>(_CmpUnspecifiedParam, weak_equality __v) noexcept {
142 explicit constexpr strong_equality(_EqResult __val) noexcept : __value_(__val) {}
151 _LIBCPP_INLINE_VISIBILITY constexpr operator weak_equality() const noexcept {
157 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator==(strong_equality __v, _CmpUnspecifiedPar…
158 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator!=(strong_equality __v, _CmpUnspecifiedPar…
159 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator==(_CmpUnspecifiedParam, strong_equality _…
160 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator!=(_CmpUnspecifiedParam, strong_equality _…
163 …_LIBCPP_INLINE_VISIBILITY friend constexpr strong_equality operator<=>(strong_equality __v, _CmpUn…
164 …_LIBCPP_INLINE_VISIBILITY friend constexpr strong_equality operator<=>(_CmpUnspecifiedParam, stron…
170 _LIBCPP_INLINE_VAR constexpr strong_equality strong_equality::equal(_EqResult::__equal);
171 _LIBCPP_INLINE_VAR constexpr strong_equality strong_equality::nonequal(_EqResult::__nonequal);
172 _LIBCPP_INLINE_VAR constexpr strong_equality strong_equality::equivalent(_EqResult::__equiv);
173 _LIBCPP_INLINE_VAR constexpr strong_equality strong_equality::nonequivalent(_EqResult::__nonequiv);
176 constexpr bool operator==(strong_equality __v, _CmpUnspecifiedParam) noexcept {
181 constexpr bool operator==(_CmpUnspecifiedParam, strong_equality __v) noexcept {
186 constexpr bool operator!=(strong_equality __v, _CmpUnspecifiedParam) noexcept {
191 constexpr bool operator!=(_CmpUnspecifiedParam, strong_equality __v) noexcept {
197 constexpr strong_equality operator<=>(strong_equality __v, _CmpUnspecifiedParam) noexcept {
202 constexpr strong_equality operator<=>(_CmpUnspecifiedParam, strong_equality __v) noexcept {
211 explicit constexpr partial_ordering(_EqResult __v) noexcept
215 explicit constexpr partial_ordering(_OrdResult __v) noexcept
219 explicit constexpr partial_ordering(_NCmpResult __v) noexcept
222 constexpr bool __is_ordered() const noexcept {
233 constexpr operator weak_equality() const noexcept {
238 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator==(partial_ordering __v, _CmpUnspecifiedPa…
239 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator!=(partial_ordering __v, _CmpUnspecifiedPa…
240 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator< (partial_ordering __v, _CmpUnspecifiedPa…
241 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator<=(partial_ordering __v, _CmpUnspecifiedPa…
242 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator> (partial_ordering __v, _CmpUnspecifiedPa…
243 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator>=(partial_ordering __v, _CmpUnspecifiedPa…
244 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator==(_CmpUnspecifiedParam, partial_ordering …
245 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator!=(_CmpUnspecifiedParam, partial_ordering …
246 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator< (_CmpUnspecifiedParam, partial_ordering …
247 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator<=(_CmpUnspecifiedParam, partial_ordering …
248 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator> (_CmpUnspecifiedParam, partial_ordering …
249 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator>=(_CmpUnspecifiedParam, partial_ordering …
252 …_LIBCPP_INLINE_VISIBILITY friend constexpr partial_ordering operator<=>(partial_ordering __v, _Cmp…
253 …_LIBCPP_INLINE_VISIBILITY friend constexpr partial_ordering operator<=>(_CmpUnspecifiedParam, part…
260 _LIBCPP_INLINE_VAR constexpr partial_ordering partial_ordering::less(_OrdResult::__less);
261 _LIBCPP_INLINE_VAR constexpr partial_ordering partial_ordering::equivalent(_EqResult::__equiv);
262 _LIBCPP_INLINE_VAR constexpr partial_ordering partial_ordering::greater(_OrdResult::__greater);
263 _LIBCPP_INLINE_VAR constexpr partial_ordering partial_ordering::unordered(_NCmpResult ::__unordered…
266 constexpr bool operator==(partial_ordering __v, _CmpUnspecifiedParam) noexcept {
270 constexpr bool operator< (partial_ordering __v, _CmpUnspecifiedParam) noexcept {
274 constexpr bool operator<=(partial_ordering __v, _CmpUnspecifiedParam) noexcept {
278 constexpr bool operator> (partial_ordering __v, _CmpUnspecifiedParam) noexcept {
282 constexpr bool operator>=(partial_ordering __v, _CmpUnspecifiedParam) noexcept {
287 constexpr bool operator==(_CmpUnspecifiedParam, partial_ordering __v) noexcept {
291 constexpr bool operator< (_CmpUnspecifiedParam, partial_ordering __v) noexcept {
295 constexpr bool operator<=(_CmpUnspecifiedParam, partial_ordering __v) noexcept {
299 constexpr bool operator> (_CmpUnspecifiedParam, partial_ordering __v) noexcept {
303 constexpr bool operator>=(_CmpUnspecifiedParam, partial_ordering __v) noexcept {
308 constexpr bool operator!=(partial_ordering __v, _CmpUnspecifiedParam) noexcept {
312 constexpr bool operator!=(_CmpUnspecifiedParam, partial_ordering __v) noexcept {
318 constexpr partial_ordering operator<=>(partial_ordering __v, _CmpUnspecifiedParam) noexcept {
322 constexpr partial_ordering operator<=>(_CmpUnspecifiedParam, partial_ordering __v) noexcept {
331 explicit constexpr weak_ordering(_EqResult __v) noexcept : __value_(_ValueT(__v)) {}
333 explicit constexpr weak_ordering(_OrdResult __v) noexcept : __value_(_ValueT(__v)) {}
342 constexpr operator weak_equality() const noexcept {
348 constexpr operator partial_ordering() const noexcept {
354 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator==(weak_ordering __v, _CmpUnspecifiedParam…
355 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator!=(weak_ordering __v, _CmpUnspecifiedParam…
356 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator< (weak_ordering __v, _CmpUnspecifiedParam…
357 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator<=(weak_ordering __v, _CmpUnspecifiedParam…
358 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator> (weak_ordering __v, _CmpUnspecifiedParam…
359 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator>=(weak_ordering __v, _CmpUnspecifiedParam…
360 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator==(_CmpUnspecifiedParam, weak_ordering __v…
361 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator!=(_CmpUnspecifiedParam, weak_ordering __v…
362 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator< (_CmpUnspecifiedParam, weak_ordering __v…
363 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator<=(_CmpUnspecifiedParam, weak_ordering __v…
364 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator> (_CmpUnspecifiedParam, weak_ordering __v…
365 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator>=(_CmpUnspecifiedParam, weak_ordering __v…
368 …_LIBCPP_INLINE_VISIBILITY friend constexpr weak_ordering operator<=>(weak_ordering __v, _CmpUnspec…
369 …_LIBCPP_INLINE_VISIBILITY friend constexpr weak_ordering operator<=>(_CmpUnspecifiedParam, weak_or…
376 _LIBCPP_INLINE_VAR constexpr weak_ordering weak_ordering::less(_OrdResult::__less);
377 _LIBCPP_INLINE_VAR constexpr weak_ordering weak_ordering::equivalent(_EqResult::__equiv);
378 _LIBCPP_INLINE_VAR constexpr weak_ordering weak_ordering::greater(_OrdResult::__greater);
381 constexpr bool operator==(weak_ordering __v, _CmpUnspecifiedParam) noexcept {
385 constexpr bool operator!=(weak_ordering __v, _CmpUnspecifiedParam) noexcept {
389 constexpr bool operator< (weak_ordering __v, _CmpUnspecifiedParam) noexcept {
393 constexpr bool operator<=(weak_ordering __v, _CmpUnspecifiedParam) noexcept {
397 constexpr bool operator> (weak_ordering __v, _CmpUnspecifiedParam) noexcept {
401 constexpr bool operator>=(weak_ordering __v, _CmpUnspecifiedParam) noexcept {
405 constexpr bool operator==(_CmpUnspecifiedParam, weak_ordering __v) noexcept {
409 constexpr bool operator!=(_CmpUnspecifiedParam, weak_ordering __v) noexcept {
413 constexpr bool operator< (_CmpUnspecifiedParam, weak_ordering __v) noexcept {
417 constexpr bool operator<=(_CmpUnspecifiedParam, weak_ordering __v) noexcept {
421 constexpr bool operator> (_CmpUnspecifiedParam, weak_ordering __v) noexcept {
425 constexpr bool operator>=(_CmpUnspecifiedParam, weak_ordering __v) noexcept {
431 constexpr weak_ordering operator<=>(weak_ordering __v, _CmpUnspecifiedParam) noexcept {
435 constexpr weak_ordering operator<=>(_CmpUnspecifiedParam, weak_ordering __v) noexcept {
444 explicit constexpr strong_ordering(_EqResult __v) noexcept : __value_(_ValueT(__v)) {}
446 explicit constexpr strong_ordering(_OrdResult __v) noexcept : __value_(_ValueT(__v)) {}
456 constexpr operator weak_equality() const noexcept {
462 constexpr operator strong_equality() const noexcept {
468 constexpr operator partial_ordering() const noexcept {
474 constexpr operator weak_ordering() const noexcept {
480 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator==(strong_ordering __v, _CmpUnspecifiedPar…
481 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator!=(strong_ordering __v, _CmpUnspecifiedPar…
482 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator< (strong_ordering __v, _CmpUnspecifiedPar…
483 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator<=(strong_ordering __v, _CmpUnspecifiedPar…
484 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator> (strong_ordering __v, _CmpUnspecifiedPar…
485 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator>=(strong_ordering __v, _CmpUnspecifiedPar…
486 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator==(_CmpUnspecifiedParam, strong_ordering _…
487 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator!=(_CmpUnspecifiedParam, strong_ordering _…
488 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator< (_CmpUnspecifiedParam, strong_ordering _…
489 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator<=(_CmpUnspecifiedParam, strong_ordering _…
490 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator> (_CmpUnspecifiedParam, strong_ordering _…
491 …_LIBCPP_INLINE_VISIBILITY friend constexpr bool operator>=(_CmpUnspecifiedParam, strong_ordering _…
494 …_LIBCPP_INLINE_VISIBILITY friend constexpr strong_ordering operator<=>(strong_ordering __v, _CmpUn…
495 …_LIBCPP_INLINE_VISIBILITY friend constexpr strong_ordering operator<=>(_CmpUnspecifiedParam, stron…
502 _LIBCPP_INLINE_VAR constexpr strong_ordering strong_ordering::less(_OrdResult::__less);
503 _LIBCPP_INLINE_VAR constexpr strong_ordering strong_ordering::equal(_EqResult::__equal);
504 _LIBCPP_INLINE_VAR constexpr strong_ordering strong_ordering::equivalent(_EqResult::__equiv);
505 _LIBCPP_INLINE_VAR constexpr strong_ordering strong_ordering::greater(_OrdResult::__greater);
508 constexpr bool operator==(strong_ordering __v, _CmpUnspecifiedParam) noexcept {
512 constexpr bool operator!=(strong_ordering __v, _CmpUnspecifiedParam) noexcept {
516 constexpr bool operator< (strong_ordering __v, _CmpUnspecifiedParam) noexcept {
520 constexpr bool operator<=(strong_ordering __v, _CmpUnspecifiedParam) noexcept {
524 constexpr bool operator> (strong_ordering __v, _CmpUnspecifiedParam) noexcept {
528 constexpr bool operator>=(strong_ordering __v, _CmpUnspecifiedParam) noexcept {
532 constexpr bool operator==(_CmpUnspecifiedParam, strong_ordering __v) noexcept {
536 constexpr bool operator!=(_CmpUnspecifiedParam, strong_ordering __v) noexcept {
540 constexpr bool operator< (_CmpUnspecifiedParam, strong_ordering __v) noexcept {
544 constexpr bool operator<=(_CmpUnspecifiedParam, strong_ordering __v) noexcept {
548 constexpr bool operator> (_CmpUnspecifiedParam, strong_ordering __v) noexcept {
552 constexpr bool operator>=(_CmpUnspecifiedParam, strong_ordering __v) noexcept {
558 constexpr strong_ordering operator<=>(strong_ordering __v, _CmpUnspecifiedParam) noexcept {
562 constexpr strong_ordering operator<=>(_CmpUnspecifiedParam, strong_ordering __v) noexcept {
569 constexpr bool is_eq(weak_equality __cmp) noexcept { return __cmp == 0; }
572 constexpr bool is_neq(weak_equality __cmp) noexcept { return __cmp != 0; }
575 constexpr bool is_lt(partial_ordering __cmp) noexcept { return __cmp < 0; }
578 constexpr bool is_lteq(partial_ordering __cmp) noexcept { return __cmp <= 0; }
581 constexpr bool is_gt(partial_ordering __cmp) noexcept { return __cmp > 0; }
584 constexpr bool is_gteq(partial_ordering __cmp) noexcept { return __cmp >= 0; }
600 constexpr _ClassifyCompCategory __type_to_enum() noexcept {
615 constexpr _ClassifyCompCategory
636 constexpr auto __get_comp_type() {
638 constexpr array<_CCC, sizeof...(_Ts)> __type_kinds{{__comp_detail::__type_to_enum<_Ts>()...}};
639 constexpr _CCC _Cat = sizeof...(_Ts) == 0 ? _StrongOrd
641 if constexpr (_Cat == _None)
643 else if constexpr (_Cat == _WeakEq)
645 else if constexpr (_Cat == _StrongEq)
647 else if constexpr (_Cat == _PartialOrd)
649 else if constexpr (_Cat == _WeakOrd)
651 else if constexpr (_Cat == _StrongOrd)
669 template<class _Tp> constexpr strong_ordering strong_order(const _Tp& __lhs, const _Tp& __rhs);
670 template<class _Tp> constexpr weak_ordering weak_order(const _Tp& __lhs, const _Tp& __rhs);
671 template<class _Tp> constexpr partial_ordering partial_order(const _Tp& __lhs, const _Tp& __rhs);
672 template<class _Tp> constexpr strong_equality strong_equal(const _Tp& __lhs, const _Tp& __rhs);
673 template<class _Tp> constexpr weak_equality weak_equal(const _Tp& __lhs, const _Tp& __rhs);