[#BloombergLP-bslstl-HashTable-operator_assign-0c]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/HashTable.adoc[HashTable]::operator&equals;
:relfileprefix: ../../../
:mrdocs:

Copy&hyphen;assign to this object from `rhs` and return `&ast;this`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslstl/HashTable.adoc[HashTable&lt;KEY&lowbar;CONFIG, HASHER, COMPARATOR, ALLOCATOR&gt;]&
operator&equals;(xref:BloombergLP/bslstl/HashTable.adoc[HashTable] const& rhs);
----

== Description

Assign to this object the value, hasher, comparator and `maxLoadFactor` 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; This method requires that the `ValueType` defined by the (template parameter) type `KEY&lowbar;CONFIG` be `copy&hyphen;assignable` and `copy&hyphen;insertable` into this hash&hyphen;table (see &lcub;Requirements on `KEY&lowbar;CONFIG`&rcub;)&period; This method requires that the (template parameter) types `HASHER` and `COMPARATOR` be `copy&hyphen;constructible` and `copy&hyphen;assignable`&period; Note that these requirements are modeled after the unordered container requirements table in the C&plus;&plus;11 standard, which is imprecise on this operation&semi; these requirements might simplify in the future, if the standard is updated&period;

== Return Value

reference providing modifiable access to this object

== Parameters

[cols="1,4"]
|===
| Name| Description
| *rhs*
| hash table to copy&hyphen;assign from
|===


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