31#define _RANGES_CMP_H 1
33#if __cplusplus > 201703L
37namespace std _GLIBCXX_VISIBILITY(default)
39_GLIBCXX_BEGIN_NAMESPACE_VERSION
41 struct __is_transparent;
49 template<
typename _Tp>
52 operator()(_Tp&& __t)
const noexcept
55 using is_transparent = __is_transparent;
58#ifdef __glibcxx_ranges
66 template<
typename _Tp,
typename _Up>
67 concept __less_builtin_ptr_cmp
68 =
requires (_Tp&& __t, _Up&& __u) { { __t < __u } -> same_as<bool>; }
69 && convertible_to<_Tp, const volatile void*>
70 && convertible_to<_Up, const volatile void*>
71 && !
requires(_Tp&& __t, _Up&& __u)
73 && !
requires(_Tp&& __t, _Up&& __u)
75 && std::__detail::__not_overloaded_spaceship<_Tp, _Up>;
86 template<
typename _Tp,
typename _Up>
87 requires equality_comparable_with<_Tp, _Up>
89 operator()(_Tp&& __t, _Up&& __u)
const
93 using is_transparent = __is_transparent;
99 template<
typename _Tp,
typename _Up>
100 requires equality_comparable_with<_Tp, _Up>
102 operator()(_Tp&& __t, _Up&& __u)
const
106 using is_transparent = __is_transparent;
112 template<
typename _Tp,
typename _Up>
113 requires totally_ordered_with<_Tp, _Up>
115 operator()(_Tp&& __t, _Up&& __u)
const
118 if constexpr (__detail::__less_builtin_ptr_cmp<_Tp, _Up>)
120 if (std::__is_constant_evaluated())
123 auto __x =
reinterpret_cast<__UINTPTR_TYPE__
>(
125 auto __y =
reinterpret_cast<__UINTPTR_TYPE__
>(
133 using is_transparent = __is_transparent;
139 template<
typename _Tp,
typename _Up>
140 requires totally_ordered_with<_Tp, _Up>
142 operator()(_Tp&& __t, _Up&& __u)
const
146 using is_transparent = __is_transparent;
152 template<
typename _Tp,
typename _Up>
153 requires totally_ordered_with<_Tp, _Up>
155 operator()(_Tp&& __t, _Up&& __u)
const
159 using is_transparent = __is_transparent;
165 template<
typename _Tp,
typename _Up>
166 requires totally_ordered_with<_Tp, _Up>
168 operator()(_Tp&& __t, _Up&& __u)
const
172 using is_transparent = __is_transparent;
177_GLIBCXX_END_NAMESPACE_VERSION
auto declval() noexcept -> decltype(__declval< _Tp >(0))
constexpr _Tp && forward(typename std::remove_reference< _Tp >::type &__t) noexcept
Forward an lvalue.
ISO C++ entities toplevel namespace is std.
Implementation details not part of the namespace std interface.
[func.identity] The identity function.
ranges::equal_to function object type.
ranges::not_equal_to function object type.
ranges::less function object type.
ranges::greater function object type.
ranges::greater_equal function object type.
ranges::less_equal function object type.