Returns a mutable 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&
numerical_value_ref_in(U u) & noexcept;

Return Value

A 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