[#mp_units-quantity-01-in-09b] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity-01.adoc[quantity]::in :relfileprefix: ../../ :mrdocs: Returns this quantity re‐expressed in another unit and representation type, both implicitly convertible. == Synopsis Declared in `<mp‐units/framework/quantity.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< xref:mp_units/RepresentationOf.adoc[RepresentationOf<quantity_spec>] ToRep, xref:mp_units/UnitOf.adoc[UnitOf<quantity_spec>] ToU> requires detail::RepConstructibleFrom<ToRep, rep> && detail::ImplicitConversion<unit, rep, ToU{}, ToRep> [[nodiscard]] constexpr xref:mp_units/QuantityOf.adoc[QuantityOf<quantity_spec>] auto in(ToU to_u) const; ---- == Return Value The equivalent quantity expressed in `to_u` with representation type `ToRep`. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== == Parameters [cols="1,4"] |=== | Name| Description | *to_u* | the target unit |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#