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}).
Synopsis
Declared in <bslstl_hashtable.h>
HashTable<KEY_CONFIG, HASHER, COMPARATOR, ALLOCATOR>&
operator=(BloombergLP::bslmf::MovableRef<HashTable> rhs);
Created with MrDocs