mp_units::quantity_point::in

Returns this quantity point re-expressed in another unit, implicitly convertible to rep.

Synopsis

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

template<UnitOf<quantity_spec> ToU>
requires detail::ImplicitScaling<unit, ToU{}, rep>
[[nodiscard]]
constexpr
QuantityPointOf<quantity_spec> auto
in(ToU to_u) const;

Return Value

The equivalent quantity point expressed in to_u.

NOTE

The return value should not be discarded.

Parameters

NameDescription
to_uthe target unit