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

Name

Description

u1

the unit to multiply

r

the reference to multiply by

Created with MrDocs