3#ifndef TETL_COMPARE_WEAK_ORDERING_HPP
4#define TETL_COMPARE_WEAK_ORDERING_HPP
15 static weak_ordering
const less;
25 [[nodiscard]]
friend constexpr auto operator==(weak_ordering, weak_ordering)
noexcept ->
bool =
default;
32 [[nodiscard]]
friend constexpr auto operator<(weak_ordering v,
nullptr_t)
noexcept ->
bool {
return v._value < 0; }
39 [[nodiscard]]
friend constexpr auto operator>(weak_ordering v,
nullptr_t)
noexcept ->
bool {
return v._value > 0; }
46 [[nodiscard]]
friend constexpr auto operator<(
nullptr_t, weak_ordering v)
noexcept ->
bool {
return 0 < v._value; }
53 [[nodiscard]]
friend constexpr auto operator>(
nullptr_t, weak_ordering v)
noexcept ->
bool {
return 0 > v._value; }
60 [[nodiscard]]
friend constexpr auto operator<=>(weak_ordering v,
nullptr_t)
noexcept -> weak_ordering {
return v; }
68 explicit constexpr weak_ordering(detail::order_result v) noexcept
69 : _value{
static_cast<int8_t>(v)}
Definition adjacent_find.hpp:8
TETL_BUILTIN_INT8 int8_t
Signed integer type with width of exactly 8 bits.
Definition int_t.hpp:11
decltype(nullptr) nullptr_t
etl::nullptr_t is the type of the null pointer literal, nullptr. It is a distinct type that is not it...
Definition nullptr_t.hpp:13
Definition partial_ordering.hpp:12
static partial_ordering const equivalent
Definition partial_ordering.hpp:14
static partial_ordering const greater
Definition partial_ordering.hpp:15
static partial_ordering const less
Definition partial_ordering.hpp:13
Definition weak_ordering.hpp:13
friend constexpr auto operator<(weak_ordering v, nullptr_t) noexcept -> bool
Definition weak_ordering.hpp:32
friend constexpr auto operator<=(nullptr_t, weak_ordering v) noexcept -> bool
Definition weak_ordering.hpp:48
static weak_ordering const greater
Definition weak_ordering.hpp:17
friend constexpr auto operator>=(weak_ordering v, nullptr_t) noexcept -> bool
Definition weak_ordering.hpp:41
friend constexpr auto operator<=(weak_ordering v, nullptr_t) noexcept -> bool
Definition weak_ordering.hpp:34
static weak_ordering const equivalent
Definition weak_ordering.hpp:16
friend constexpr auto operator>(weak_ordering v, nullptr_t) noexcept -> bool
Definition weak_ordering.hpp:39
friend constexpr auto operator<=>(weak_ordering v, nullptr_t) noexcept -> weak_ordering
Definition weak_ordering.hpp:60
friend constexpr auto operator<(nullptr_t, weak_ordering v) noexcept -> bool
Definition weak_ordering.hpp:46
friend constexpr auto operator>(nullptr_t, weak_ordering v) noexcept -> bool
Definition weak_ordering.hpp:53
friend constexpr auto operator==(weak_ordering v, nullptr_t) noexcept -> bool
Definition weak_ordering.hpp:27
friend constexpr auto operator>=(nullptr_t, weak_ordering v) noexcept -> bool
Definition weak_ordering.hpp:55
friend constexpr auto operator<=>(nullptr_t, weak_ordering v) noexcept -> weak_ordering
Definition weak_ordering.hpp:62
friend constexpr auto operator==(weak_ordering, weak_ordering) noexcept -> bool=default
static weak_ordering const less
Definition weak_ordering.hpp:15