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

Name Description

lhs

The left operand

rhs

The right operand

Created with MrDocs