Skip to content

mp_units::quantity_point::in

Synopsis

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

template<RepresentationOf<quantity_spec> ToRep, UnitOf<quantity_spec> ToU,
         /* implementation-defined */ Policy>
  requires std::constructible_from<ToRep, rep> &&
           detail::UnitChangeCastable<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.