[#mp_units-quantity-01-operator_assign-0ed] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity-01.adoc[quantity]::operator= :relfileprefix: ../../ :mrdocs: Assignment operators == Synopses Declared in `<mp‐units/framework/quantity.h>` 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=](xref:mp_units/quantity-01.adoc[quantity] const& other) = default; ---- [.small]#xref:mp_units/quantity-01/operator_assign-0eb.adoc[_» more..._]# 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=](xref:mp_units/quantity-01.adoc[quantity]&& other) = default; ---- [.small]#xref:mp_units/quantity-01/operator_assign-05.adoc[_» more..._]# Assignment operator [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<typename FwdValue> requires detail::DimensionlessOne<reference> && detail::ValuePreservingAssignment<rep, FwdValue> constexpr xref:mp_units/quantity-01.adoc[quantity]& xref:mp_units/quantity-01/operator_assign-01.adoc[operator=](FwdValue&& val); ---- [.small]#xref:mp_units/quantity-01/operator_assign-01.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#