mp_units::operator-¶
Subtraction operator
Synopsis¶
Declared in <mp-units/framework/quantity_point.h>
template<auto R2, auto PO2, typename Rep2,
/* implementation-defined */ PO1>
requires ReferenceOf<decltype(R2), get_quantity_spec(PO1{})>
[[nodiscard]] constexpr Quantity auto operator-(PO1 po,
quantity_point<R2, PO2, Rep2> const& qp)
requires requires { -(qp - po); };
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¶
| Name | Description |
|---|---|
| po | The left operand |
| qp | The right operand |