Multiplication operator
Declared in <mp-units/framework/quantity.h>
template<
typename Value,
auto R1,
typename Rep1>
requires (!Quantity<Value>) && (!Reference<Value>) &&
ScalableResultOf<get_quantity_spec(R1), std::multiplies<>, const Value&, Rep1>
[[nodiscard]]
constexpr
Quantity auto
operator*(
Value const& val,
quantity<R1, Rep1> const& q);
This function is a hidden friend of quantity, 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 |
|---|---|
| val | The left operand |
| q | The right operand |