mp_units::quantity_point::quantity_from

Returns the quantity separating this quantity point from another quantity point.

Synopsis

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

template<QuantityPointOf<absolute_point_origin> QP>
[[nodiscard]]
constexpr
Quantity auto
quantity_from(QP const& qp) const;

Return Value

The result of *this - qp.

NOTE

The return value should not be discarded.

Parameters

NameDescription
qpthe quantity point to measure the offset from