[#BloombergLP-bslstl-HashTable-09-operator_assign-04] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::xref:BloombergLP/bslstl/HashTable-09.adoc[HashTable<UnorderedMapKeyConfiguration<basic_string<char> const, pair<basic_string<char> const, Json>>, TransparentHash, TransparentEqualTo, allocator<pair<basic_string<char> const, Json>>>]::operator= :relfileprefix: ../../../ :mrdocs: Assignment operators == Synopses Declared in `<bslstl_hashtable.h>` 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_on_container_move_assignment`, and return a reference providing modifiable access to this object. If this hash‐table and `rhs` use the same allocator (after considering the aforementioned trait), all of the contents of `rhs` are moved to this hash‐table in constant time; otherwise, all elements in this hash table are either destroyed or move‐assigned to and each additional element in `rhs` is move‐inserted into this hash‐table. `rhs` is left in a valid but unspecified state. This method requires that the `ValueType` defined by the (template parameter) type `KEY_CONFIG` be both `move‐assignable` and `move‐insertable` into this hash‐table (see {Requirements on `KEY_CONFIG`}). [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslstl/HashTable-06.adoc[HashTable<UnorderedMapKeyConfiguration<basic_string<char> const, pair<basic_string<char> const, Json>>, TransparentHash, TransparentEqualTo, allocator<pair<basic_string<char> const, Json>>>]& xref:BloombergLP/bslstl/HashTable-09/operator_assign-0f.adoc[operator=](xref:BloombergLP/bslmf/MovableRef.adoc[BloombergLP::bslmf::MovableRef<HashTable<UnorderedMapKeyConfiguration<basic_string<char> const, pair<basic_string<char> const, Json>>, TransparentHash, TransparentEqualTo, allocator<pair<basic_string<char> const, Json>>>>] rhs); ---- [.small]#xref:BloombergLP/bslstl/HashTable-09/operator_assign-0f.adoc[_» more..._]# 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_on_container_copy_assignment`, and return a reference providing modifiable access to this object. This method requires that the `ValueType` defined by the (template parameter) type `KEY_CONFIG` be `copy‐assignable` and `copy‐insertable` into this hash‐table (see {Requirements on `KEY_CONFIG`}). This method requires that the (template parameter) types `HASHER` and `COMPARATOR` be `copy‐constructible` and `copy‐assignable`. Note that these requirements are modeled after the unordered container requirements table in the C++11 standard, which is imprecise on this operation; these requirements might simplify in the future, if the standard is updated. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslstl/HashTable-06.adoc[HashTable<UnorderedMapKeyConfiguration<basic_string<char> const, pair<basic_string<char> const, Json>>, TransparentHash, TransparentEqualTo, allocator<pair<basic_string<char> const, Json>>>]& xref:BloombergLP/bslstl/HashTable-09/operator_assign-0a.adoc[operator=](xref:BloombergLP/bslstl/HashTable-06.adoc[HashTable<UnorderedMapKeyConfiguration<basic_string<char> const, pair<basic_string<char> const, Json>>, TransparentHash, TransparentEqualTo, allocator<pair<basic_string<char> const, Json>>>] const& rhs); ---- [.small]#xref:BloombergLP/bslstl/HashTable-09/operator_assign-0a.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#