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.
Declared in <mp-units/framework/dimension.h>
template<
Dimension Lhs,
Dimension Rhs>
[[nodiscard]]
consteval
Dimension auto
operator*(
Lhs lhs,
Rhs rhs);
This function is a hidden friend of derived_dimension, declared inside an implementation-defined base class: it can be found only through argument-dependent lookup.
The return value should not be discarded.
| Name | Description |
|---|---|
| lhs | The left operand |
| rhs | The right operand |