[#mp_units-quantity-01-operator_assign-01] = xref:mp_units.adoc[mp_units]::xref:mp_units/quantity-01.adoc[quantity]::operator= :relfileprefix: ../../ :mrdocs: Assignment operator == Synopsis Declared in `<mp‐units/framework/quantity.h>` [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]& operator=(FwdValue&& val); ---- == Return Value Reference to the current object == Parameters [cols=2] |=== | Name | Description | *val* | The object to move assign from |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#