Skip to content

mp_units::scale

The former name of scale_by_magnitude.

Synopses

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

The former name of scale_by_magnitude.

template<typename To, UnitMagnitude M, typename From>
  requires detail::UnitMagnitudeScalable<From>
[[deprecated("2.6.0: Use `scale_by_magnitude` instead"), nodiscard]] constexpr auto scale(
  M m, From const& value);

» more...

The former name of scale_by_magnitude.

template<typename To, UnitMagnitude M, typename From,
         /* implementation-defined */ Policy>
  requires detail::UnitMagnitudeScalable<From>
[[deprecated("2.6.0: Use `scale_by_magnitude` instead"), nodiscard]] constexpr auto scale(
  M m, From const& value, Policy policy);

» more...

Warning

Deprecated: 2.6.0: Use `scale_by_magnitude` instead. Use of this entity is allowed but discouraged.

Return Value

Note

The return value should not be discarded.