mp_units::operator*

Multiplies two references

Synopsis

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

[[nodiscard]]
consteval
/* implementation-defined */
operator*(
    reference r1,
    reference<Q2, U2> r2);

Return Value

a reference resulting from multiplying the quantity specifications and the units

NOTE

The return value should not be discarded.

Parameters

NameDescription
r1the reference to multiply
r2the reference to multiply by