[#bsl-unordered_map-0bf-operator_assign-0b]
= xref:bsl.adoc[bsl]::xref:bsl/unordered_map-0bf.adoc[unordered&lowbar;map&lt;basic&lowbar;string&lt;char&gt;, Json, TransparentHash, TransparentEqualTo&gt;]::operator&equals;
:relfileprefix: ../../
:mrdocs:

Assignment operators

== Synopses

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

Assign to this object the value, hash function, and key&hyphen;equality comparator of the specified `rhs` object, propagate to this object the allocator of `rhs` if the `ALLOCATOR` type has trait `propagate&lowbar;on&lowbar;container&lowbar;move&lowbar;assignment`, and return a reference providing modifiable access to this object&period; The contents of `rhs` are moved (in constant time) to this unordered map if `get&lowbar;allocator() &equals;&equals; rhs&period;get&lowbar;allocator()` (after accounting for the aforementioned trait)&semi; otherwise, all elements in this container are either destroyed or move&hyphen;assigned to, and each additional element in `rhs` is move&hyphen;inserted into this unordered&lowbar;map&period; `rhs` is left in a valid but unspecified state, and if an exception is thrown, `&ast;this` is left in a valid but unspecified state&period; This method requires that the type `value&lowbar;type` be `move&hyphen;constructible` (see &lcub;Requirements on `value&lowbar;type`&rcub;)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_map-02b.adoc[unordered&lowbar;map&lt;basic&lowbar;string&lt;char&gt;, Json, TransparentHash, TransparentEqualTo&gt;]&
xref:bsl/unordered_map-0bf/operator_assign-05.adoc[operator&equals;](xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;unordered&lowbar;map&lt;basic&lowbar;string&lt;char&gt;, Json, TransparentHash, TransparentEqualTo&gt;&gt;] rhs) noexcept(&sol;&ast; see-below &ast;&sol;);
----

[.small]#xref:bsl/unordered_map-0bf/operator_assign-05.adoc[_» more&period;&period;&period;_]#

Assign to this unordered map the value of the of the specified initializer list `rhs`, and return a reference providing modifiable access to this object&period; This method requires that the (template parameter) type `value&lowbar;type` be `copy&hyphen;insertable` into this list&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_map-02b.adoc[unordered&lowbar;map&lt;basic&lowbar;string&lt;char&gt;, Json, TransparentHash, TransparentEqualTo&gt;]&
xref:bsl/unordered_map-0bf/operator_assign-04.adoc[operator&equals;](std::initializer&lowbar;list&lt;value&lowbar;type&gt; rhs);
----

[.small]#xref:bsl/unordered_map-0bf/operator_assign-04.adoc[_» more&period;&period;&period;_]#

Assign to this object the value, hasher, key&hyphen;equality functor, and `max&lowbar;load&lowbar;factor` of the specified `rhs` object, propagate to this object the allocator of `rhs` if the `ALLOCATOR` type has trait `propagate&lowbar;on&lowbar;container&lowbar;copy&lowbar;assignment`, and return a reference providing modifiable access to this object&period; Note that this method requires that the (template parameter) types `KEY` and `VALUE` both be `copy&hyphen;constructible` (see &lcub;Requirements on `value&lowbar;type`&rcub;)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/unordered_map-02b.adoc[unordered&lowbar;map&lt;basic&lowbar;string&lt;char&gt;, Json, TransparentHash, TransparentEqualTo&gt;]&
xref:bsl/unordered_map-0bf/operator_assign-0a.adoc[operator&equals;](xref:bsl/unordered_map-02b.adoc[unordered&lowbar;map&lt;basic&lowbar;string&lt;char&gt;, Json, TransparentHash, TransparentEqualTo&gt;] const& rhs);
----

[.small]#xref:bsl/unordered_map-0bf/operator_assign-0a.adoc[_» more&period;&period;&period;_]#


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