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

Assignment operator

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename FwdValue&gt;
requires detail&colon;&colon;DimensionlessOne&lt;reference&gt; &amp;&amp; detail&colon;&colon;ValuePreservingAssignment&lt;rep, FwdValue&gt;
constexpr
xref:mp_units/quantity-01.adoc[quantity]&
operator&equals;(FwdValue&& val);
----

== Return Value

Reference to the current object

== Parameters

[cols="1,4"]
|===
|Name|Description

| *val*
| The object to move assign from
|===


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