mp_units::operator*

scaled_unit specializations have priority in this operation. This means that the library framework prevents passing it as an element to the derived_unit. In such case only the reference unit is passed to the derived unit and the magnitude remains outside forming another scaled unit as a result of the operation.

Synopsis

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

template<
    Dimension Lhs,
    Dimension Rhs>
[[nodiscard]]
consteval
Dimension auto
operator*(
    Lhs lhs,
    Rhs rhs);

NOTE

This function is a hidden friend of dimension_one, declared inside an implementation-defined base class: it can be found only through argument-dependent lookup.

Return Value

NOTE

The return value should not be discarded.

Parameters

NameDescription
lhsThe left operand
rhsThe right operand