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