[#BloombergLP-bdlc-FlatHashMap-operator_assign-04]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap]::operator&equals;
:relfileprefix: ../../../
:mrdocs:

Assignment operators

== Synopses

Declared in `&lt;bdlc&lowbar;flathashmap&period;h&gt;`

Assign to this object the value, hasher, and equality functor of the specified `rhs` object, and return a reference providing modifiable access to this object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap&lt;KEY, VALUE, HASH, EQUAL&gt;]&
xref:BloombergLP/bdlc/FlatHashMap/operator_assign-05.adoc[operator&equals;](xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap] const& rhs);
----

[.small]#xref:BloombergLP/bdlc/FlatHashMap/operator_assign-05.adoc[_» more&period;&period;&period;_]#

Assign to this object the value, hasher, and equality comparator of the specified `rhs` object, and return a reference providing modifiable access to this object&period; If this object and `rhs` use the same allocator the contents of `rhs` are moved (in constant time) to this object&period; `rhs` is left in a (valid) unspecified state&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap&lt;KEY, VALUE, HASH, EQUAL&gt;]&
xref:BloombergLP/bdlc/FlatHashMap/operator_assign-07.adoc[operator&equals;](xref:BloombergLP/bslmf/MovableRef.adoc[bslmf::MovableRef&lt;FlatHashMap&gt;] rhs);
----

[.small]#xref:BloombergLP/bdlc/FlatHashMap/operator_assign-07.adoc[_» more&period;&period;&period;_]#

Assign to this object the value resulting from first clearing this map and then inserting each object in the specified `values` initializer list, ignoring those objects having a value whose key is equivalent to that which appears earlier in the list&semi; return a reference providing modifiable access to this object&period; This method requires that the (template parameter) type `KEY` be `copy&hyphen;insertable` into this map (see &lcub;Requirements on `KEY`, `HASH`, and `EQUAL`&rcub;)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap&lt;KEY, VALUE, HASH, EQUAL&gt;]&
xref:BloombergLP/bdlc/FlatHashMap/operator_assign-02.adoc[operator&equals;](bsl::initializer&lowbar;list&lt;value&lowbar;type&gt; values);
----

[.small]#xref:BloombergLP/bdlc/FlatHashMap/operator_assign-02.adoc[_» more&period;&period;&period;_]#


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