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

Assignment operators

== Synopses

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

Copy assignment operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:mp_units/quantity-01.adoc[quantity]&
xref:mp_units/quantity-01/operator_assign-0eb.adoc[operator&equals;](xref:mp_units/quantity-01.adoc[quantity] const& other) = default;
----

[.small]#xref:mp_units/quantity-01/operator_assign-0eb.adoc[_» more&period;&period;&period;_]#

Move assignment operator


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:mp_units/quantity-01.adoc[quantity]&
xref:mp_units/quantity-01/operator_assign-05.adoc[operator&equals;](xref:mp_units/quantity-01.adoc[quantity]&& other) = default;
----

[.small]#xref:mp_units/quantity-01/operator_assign-05.adoc[_» more&period;&period;&period;_]#

Assignment operator


[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]&
xref:mp_units/quantity-01/operator_assign-0f.adoc[operator&equals;](FwdValue&& val);
----

[.small]#xref:mp_units/quantity-01/operator_assign-0f.adoc[_» more&period;&period;&period;_]#


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