Skip to content

mp_units::quantity_point::numerical_value_in

Synopsis

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

template<RepresentationOf<quantity_spec> ToRep, UnitOf<quantity_spec> U,
         /* implementation-defined */ Policy>
  requires(PO == default_point_origin(R)) && std::constructible_from<ToRep, rep> &&
          detail::UnitChangeCastable<unit, U{}, ToRep> &&
          detail::ValidRoundingPolicyFor<Policy, rep, ToRep>
[[nodiscard]] constexpr RepresentationOf<quantity_spec> auto numerical_value_in(
  U, Policy policy) const;

Return Value

Note

The return value should not be discarded.