mp_units::operator<=>

Three-way comparison operator

Synopsis

Declared in <mp-units/safe_int.h>
[[nodiscard]]
constexpr
std::strong_ordering
operator<=>(
    safe_int lhs,
    U rhs);

Return Value

The relative order of the objects

Parameters

Name Description
lhs The left operand
rhs The right operand