mp_units::quantity::in

Returns this quantity re-expressed with another representation type, in the same unit.

Synopsis

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

template<RepresentationOf<quantity_spec> ToRep>
requires detail::RepConstructibleFrom<ToRep, rep>
[[nodiscard]]
constexpr
QuantityOf<quantity_spec> auto
in() const;

Return Value

The equivalent quantity with representation type ToRep.

NOTE

The return value should not be discarded.