mp_units::operator*

Multiplies two references

Synopsis

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

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

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 specifications and the units

NOTE

The return value should not be discarded.

Parameters

NameDescription
r1the reference to multiply
r2the reference to multiply by