mp_units::quantity_point::quantity_from_zero

Returns the quantity separating this quantity point from the zero of its default point origin.

Synopsis

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

[[nodiscard]]
constexpr
quantity_type const&
quantity_from_zero() const noexcept
requires (PO == default_point_origin(R));

Description

Only available when point_origin is the default point origin for R.

Return Value

A reference to the stored offset quantity, measured from point_origin.

NOTE

The return value should not be discarded.