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

Multiplies `&ast;this` by a scalar value and assigns the result to `&ast;this`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;&sol;&ast; implementation-defined &ast;&sol; Value&gt;
requires requires(rep&amp; a, const Value b) &lcub;
      &lcub; a &ast;&equals; b &rcub; &hyphen;&gt; std&colon;&colon;same&lowbar;as&lt;rep&amp;&gt;&semi;
    &rcub;
constexpr
xref:mp_units/quantity-01.adoc[quantity]&
operator&ast;&equals;(Value const& val) &amp;;
----

== Return Value

`&ast;this`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *val*
| the scalar value to multiply by
|===


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