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_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.
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}).
Created with MrDocs