mp_units::quantity::in

Synopsis

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

template<
    UnitOf<quantity_spec> ToU,
    RoundingPolicy Policy>
requires detail::ExplicitlyCastable<unit, ToU{}, rep> && detail::ValidRoundingPolicyFor<Policy, rep, rep>
[[nodiscard]]
constexpr
QuantityOf<quantity_spec> auto
in(
    ToU,
    Policy policy) const;

Return Value

NOTE

The return value should not be discarded.