mp_units::quantity_point::quantity_ref_from

Returns a mutable reference to the underlying quantity, measured from point_origin.

Synopsis

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

template<PointOrigin PO2>
requires (PO2{} == point_origin)
[[nodiscard]]
constexpr
quantity_type&
quantity_ref_from(PO2 po) & noexcept;

Return Value

A reference to the stored offset quantity.

NOTE

The return value should not be discarded.

Parameters

NameDescription
poa point origin equal to point_origin