mp_units::quantity::numerical_value_ref_in

Deleted overload that prevents forming a reference into a temporary quantity.

Synopsis

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

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

Return Value

The type used to represent the numerical value of the quantity.

Parameters

NameDescription
ua unit equivalent to unit