mp_units::operator-

Subtraction operator

Synopsis

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

template<
    PointOrigin PO1,
    auto R2,
    auto PO2,
    typename Rep2>
requires QuantityPointOf<quantity_point<R2, PO2, Rep2>, PO1{}> &&
             ReferenceOf<MP_UNITS_REMOVE_CONST(decltype(R2)), get_quantity_spec(PO1{})>
[[nodiscard]]
constexpr
Quantity auto
operator-(
    PO1 po,
    quantity_point<R2, PO2, Rep2> const& qp);

NOTE

This function is a hidden friend of quantity_point, declared inside an implementation-defined base class: it can be found only through argument-dependent lookup.

Return Value

NOTE

The return value should not be discarded.

Parameters

NameDescription
poThe left operand
qpThe right operand