mp_units::operator<=>

Three-way comparison operator

Synopsis

Declared in <mp-units/safe_int.h>

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

Return Value

The relative order of the objects

Parameters

NameDescription
lhsThe left operand
rhsThe right operand