Returns this quantity point re‐expressed in another unit and representation type, both implicitly convertible.

Synopsis

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

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

Return Value

The equivalent quantity point expressed in to_u with representation type ToRep.

Note

The return value should not be discarded.

Parameters

Name

Description

to_u

the target unit

Created with MrDocs