Three‐way comparison operator

Synopsis

Declared in <mp‐units/framework/quantity.h>

template<
    std::derived_from<quantity> Q,
    RepresentationOf<quantity_spec> Value>
requires detail::DimensionlessOne<Q::reference> && std::three_way_comparable_with<rep, Value>
[[nodiscard]]
constexpr
auto
operator<=>(
    Q const& lhs,
    Value const& rhs);

Return Value

The relative order of the objects

Parameters

Name

Description

lhs

The left operand

rhs

The right operand

Created with MrDocs