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

Rebinds a quantity to a reference obtained by multiplying its own reference by `R`

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename FwdQ,
    xref:mp_units/Reference-0ba.adoc[Reference] R,
    xref:mp_units/Quantity-0c.adoc[Quantity] Q = std::remove&lowbar;cvref&lowbar;t&lt;FwdQ&gt;&gt;
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/Quantity-0c.adoc[Quantity] auto
operator&ast;(
    FwdQ&& q,
    R r);
----

== Return Value

quantity holding the same numerical value as `q`, with reference `Q&colon;&colon;reference &ast; R&lcub;&rcub;`

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

[cols="1,4"]
|===
| Name| Description
| *q*
| quantity being rebound
| *r*
| reference to multiply the quantity&apos;s reference by
|===


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