mp_units::quantity::in

Synopsis

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

template<
    RepresentationOf<quantity_spec> ToRep,
    RoundingPolicy Policy>
requires std::constructible_from<ToRep, rep> && detail::ValidRoundingPolicyFor<Policy, rep, ToRep>
[[nodiscard]]
constexpr
QuantityOf<quantity_spec> auto
in(Policy policy) const;

Return Value

NOTE

The return value should not be discarded.