Skip to content

mp_units::usc::operator-

Subtraction operator

Synopsis

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

template<PointOrigin PO, Quantity Q>
  requires PointOriginFor<PO, Q::quantity_spec>
[[nodiscard]] constexpr QuantityPoint auto operator-(PO po, Q const& q)
  requires requires { -q; };

Note

This function is a hidden friend of fahrenheit_zero, 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
qThe right operand