[#mp_units-operator_star-0f]
= xref:mp_units.adoc[mp&lowbar;units]::operator&ast;
:relfileprefix: ../
:mrdocs:

Multiplies a reference by a unit

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;framework&sol;reference&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
consteval
&sol;&ast; implementation-defined &ast;&sol;
operator&ast;(
    xref:mp_units/reference-0b2.adoc[reference] r,
    U2 u2);
----

== Return Value

a reference resulting from multiplying the quantity specification and the unit

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *r*
| the reference to multiply
| *u2*
| the unit to multiply by
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
