[#bsl-map-0a7-operator_assign-0c]
= xref:bsl.adoc[bsl]::xref:bsl/map-0a7.adoc[map]::operator&equals;
:relfileprefix: ../../
:mrdocs:

Assignment operators

== Synopses

Declared in `&lt;bslstl&lowbar;map&period;h&gt;`

Assign to this map the value and comparator of `rhs`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/map-0a7.adoc[map&lt;KEY, VALUE, COMPARATOR, ALLOCATOR&gt;]&
xref:bsl/map-0a7/operator_assign-00.adoc[operator&equals;](xref:bsl/map-0a7.adoc[map] const& rhs);
----

[.small]#xref:bsl/map-0a7/operator_assign-00.adoc[_» more&period;&period;&period;_]#

Move&hyphen;assign the contents of `rhs` into this map&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/map-0a7.adoc[map&lt;KEY, VALUE, COMPARATOR, ALLOCATOR&gt;]&
xref:bsl/map-0a7/operator_assign-0e.adoc[operator&equals;](xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;map&gt;] rhs) noexcept(&sol;&ast; see-below &ast;&sol;);
----

[.small]#xref:bsl/map-0a7/operator_assign-0e.adoc[_» more&period;&period;&period;_]#

Assign to this map the unique&hyphen;key elements of `values`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/map-0a7.adoc[map&lt;KEY, VALUE, COMPARATOR, ALLOCATOR&gt;]&
xref:bsl/map-0a7/operator_assign-02.adoc[operator&equals;](std::initializer&lowbar;list&lt;value&lowbar;type&gt; values);
----

[.small]#xref:bsl/map-0a7/operator_assign-02.adoc[_» more&period;&period;&period;_]#

== Return Value

reference providing modifiable access to this map

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rhs*
| map to copy&hyphen;assign from
| *values*
| initializer list of elements to assign
|===


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