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