mp_units::operator*¶
Multiplication operator
Synopsis¶
Declared in <mp-units/framework/unit_definitions.h>
template<typename FwdRep, Reference R,
RepresentationOf<get_quantity_spec(R{})> Rep = std::remove_cvref_t<FwdRep>>
requires(!OffsetUnit<decltype(get_unit(R{}))>)
[[nodiscard]] constexpr quantity<R{}, Rep> operator*(FwdRep && lhs, R r);
Note
This function is a hidden friend of derived_unit, declared inside an implementation-defined base class: it can be found only through argument-dependent lookup.
Return Value¶
A quantity
Note
The return value should not be discarded.
Parameters¶
| Name | Description |
|---|---|
| lhs | The left operand |
| r | The right operand |