mp_units::operator*

Multiplies a unit by a reference

Synopsis

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

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

Return Value

a reference resulting from multiplying the quantity specification and the unit

NOTE

The return value should not be discarded.

Parameters

NameDescription
u1the unit to multiply
rthe reference to multiply by