mp_units::quantity::numerical_value_in¶
Synopsis¶
Declared in <mp-units/framework/quantity.h>
template<UnitOf<quantity_spec> U,
/* implementation-defined */ Policy>
requires detail::UnitChangeCastable<unit, U{}, rep> &&
detail::ValidRoundingPolicyFor<Policy, rep, rep>
[[nodiscard]] constexpr RepresentationOf<quantity_spec> auto numerical_value_in(
U, Policy policy) const noexcept;
Return Value¶
Note
The return value should not be discarded.