mp_units::operator*

Multiplies a reference by a unit

Synopsis

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

[[nodiscard]]
consteval
/* implementation-defined */
operator*(
    reference r,
    U2 u2);

Return Value

a reference resulting from multiplying the quantity specification and the unit

NOTE

The return value should not be discarded.

Parameters

NameDescription
rthe reference to multiply
u2the unit to multiply by