[#mp_units-utility-fmt_arg_ref-operator_assign]
= xref:mp_units.adoc[mp&lowbar;units]::xref:mp_units/utility.adoc[utility]::xref:mp_units/utility/fmt_arg_ref.adoc[fmt&lowbar;arg&lowbar;ref]::operator&equals;
:relfileprefix: ../../../
:mrdocs:

Assignment operator

== Synopsis

Declared in `&lt;mp&hyphen;units&sol;utility&sol;format&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
constexpr
xref:mp_units/utility/fmt_arg_ref.adoc[fmt&lowbar;arg&lowbar;ref]&
operator&equals;(int idx);
----

== Return Value

Reference to the current object

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *idx*
| The value to assign from
|===


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