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

Move&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/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef&lt;HashTable&gt;] 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;move&lowbar;assignment`, and return a reference providing modifiable access to this object&period; If this hash&hyphen;table and `rhs` use the same allocator (after considering the aforementioned trait), all of the contents of `rhs` are moved to this hash&hyphen;table in constant time&semi; otherwise, all elements in this hash table are either destroyed or move&hyphen;assigned to and each additional element in `rhs` is move&hyphen;inserted into this hash&hyphen;table&period; `rhs` is left in a valid but unspecified state&period; This method requires that the `ValueType` defined by the (template parameter) type `KEY&lowbar;CONFIG` be both `move&hyphen;assignable` and `move&hyphen;insertable` into this hash&hyphen;table (see &lcub;Requirements on `KEY&lowbar;CONFIG`&rcub;)&period;

== Return Value

reference providing modifiable access to this object

== Parameters

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


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