Three‐way comparison operator

Synopsis

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

template<
    std::derived_from<quantity_point> QP,
    QuantityPointOf<absolute_point_origin> QP2>
requires std::three_way_comparable_with<quantity_type, typename QP2::quantity_type>
[[nodiscard]]
constexpr
auto
operator<=>(
    QP const& lhs,
    QP2 const& rhs);

Return Value

The relative order of the objects

Parameters

Name

Description

lhs

The left operand

rhs

The right operand

Created with MrDocs