mp_units::utility::detail::operator<=>

Three-way comparison operator

Synopsis

Declared in <mp-units/utility/safe_int.h>

[[nodiscard]]
constexpr
std::strong_ordering
operator<=>(
    safe_int<T, EP1> lhs,
    safe_int<U, EP2> rhs) noexcept;

Return Value

The relative order of the objects

NOTE

The return value should not be discarded.

Parameters

NameDescription
lhsThe left operand
rhsThe right operand