mp_units::operator<=>

Three-way comparison operator

Synopsis

Declared in <mp-units/safe_int.h>

[[nodiscard]]
constexpr
auto
operator<=>(
    safe_int lhs,
    constrained<U, CP> const& rhs);

Return Value

The relative order of the objects

Parameters

NameDescription
lhsThe left operand
rhsThe right operand