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

Name

Description

u

a unit equivalent to unit

Created with MrDocs