BloombergLP::bdlc::FlatHashTable::operator=

Move-assign to this table from the specified rhs.

Synopsis

Declared in <bdlc_flathashtable.h>

FlatHashTable<KEY, ENTRY, ENTRY_UTIL, HASH, EQUAL>&
operator=(bslmf::MovableRef<FlatHashTable> rhs);

Description

Assign to this object the value, hash function, and key-equality comparator of the specified rhs object and return a reference offering modifiable access to this object. The entries of rhs are moved (in constant time) to this object if the two have the same allocator, otherwise entries from rhs are moved into this table. In either case, rhs is left in a valid but unspecified state. If an exception is thrown, this object is left in a valid but unspecified state.

Return Value

modifiable reference to this table

Parameters

NameDescription
rhstable to move-assign from