Skip to content

mp_units::quantity_point::numerical_value_in

Synopses

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

template<UnitOf<quantity_spec> U>
  requires(PO == default_point_origin(R)) && detail::ImplicitScaling<unit, U{}, rep>
[[nodiscard]] constexpr RepresentationOf<quantity_spec> auto numerical_value_in(U) const noexcept;

» more...

template<UnitOf<quantity_spec> U, RoundingPolicy Policy>
  requires(PO == default_point_origin(R)) && detail::ExplicitlyCastable<unit, U{}, rep> &&
          detail::ValidRoundingPolicyFor<Policy, rep, rep>
[[nodiscard]] constexpr RepresentationOf<quantity_spec> auto numerical_value_in(U, Policy policy) const noexcept;

» more...

Return Value

Note

The return value should not be discarded.