mp_units::scale¶
The former name of scale_by_magnitude.
Synopsis¶
Declared in <mp-units/framework/scaling.h>
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);
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.