Lines Matching defs:strong_ordering

36 class strong_ordering;
192 class strong_ordering {
195 _LIBCPP_HIDE_FROM_ABI explicit constexpr strong_ordering(_OrdResult __v) noexcept : __value_(_ValueT(__v)) {}
198 static const strong_ordering less;
199 static const strong_ordering equal;
200 static const strong_ordering equivalent;
201 static const strong_ordering greater;
214 _LIBCPP_HIDE_FROM_ABI friend constexpr bool operator==(strong_ordering, strong_ordering) noexcept = default;
216 _LIBCPP_HIDE_FROM_ABI friend constexpr bool operator==(strong_ordering __v, _CmpUnspecifiedParam) noexcept {
220 _LIBCPP_HIDE_FROM_ABI friend constexpr bool operator<(strong_ordering __v, _CmpUnspecifiedParam) noexcept {
224 _LIBCPP_HIDE_FROM_ABI friend constexpr bool operator<=(strong_ordering __v, _CmpUnspecifiedParam) noexcept {
228 _LIBCPP_HIDE_FROM_ABI friend constexpr bool operator>(strong_ordering __v, _CmpUnspecifiedParam) noexcept {
232 _LIBCPP_HIDE_FROM_ABI friend constexpr bool operator>=(strong_ordering __v, _CmpUnspecifiedParam) noexcept {
236 _LIBCPP_HIDE_FROM_ABI friend constexpr bool operator<(_CmpUnspecifiedParam, strong_ordering __v) noexcept {
240 _LIBCPP_HIDE_FROM_ABI friend constexpr bool operator<=(_CmpUnspecifiedParam, strong_ordering __v) noexcept {
244 _LIBCPP_HIDE_FROM_ABI friend constexpr bool operator>(_CmpUnspecifiedParam, strong_ordering __v) noexcept {
248 _LIBCPP_HIDE_FROM_ABI friend constexpr bool operator>=(_CmpUnspecifiedParam, strong_ordering __v) noexcept {
252 _LIBCPP_HIDE_FROM_ABI friend constexpr strong_ordering
253 operator<=>(strong_ordering __v, _CmpUnspecifiedParam) noexcept {
257 _LIBCPP_HIDE_FROM_ABI friend constexpr strong_ordering
258 operator<=>(_CmpUnspecifiedParam, strong_ordering __v) noexcept {
259 return __v < 0 ? strong_ordering::greater : (__v > 0 ? strong_ordering::less : __v);
266 inline constexpr strong_ordering strong_ordering::less(_OrdResult::__less);
267 inline constexpr strong_ordering strong_ordering::equal(_OrdResult::__equiv);
268 inline constexpr strong_ordering strong_ordering::equivalent(_OrdResult::__equiv);
269 inline constexpr strong_ordering strong_ordering::greater(_OrdResult::__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>;