mp_units::operator*

Multiplies a unit by a reference

Synopsis

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

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

NOTE

This function is a hidden friend of reference, declared only inside that class: it can be found only through argument-dependent lookup.

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