mp_units::utility::operator<=>

Compares two safe_int values by their wrapped underlying values.

Synopsis

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

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

Return Value

the ordering of the wrapped values

NOTE

The return value should not be discarded.

Parameters

NameDescription
lhsthe first value to compare
rhsthe second value to compare