mp_units::quantity::numerical_value_ref_in

Returns a const reference to the numerical value, in a unit equivalent to unit.

Synopsis

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

template<Unit U>
requires (equivalent(U{}, unit))
[[nodiscard]]
constexpr
rep const&
numerical_value_ref_in(U u) const & noexcept;

Return Value

A const reference to the stored numerical value.

NOTE

The return value should not be discarded.

Parameters

NameDescription
ua unit equivalent to unit