Exchange the values of the specified a and b objects.
Declared in <bdlc_flathashtable.h>
template<
class KEY,
class ENTRY,
class ENTRY_UTIL,
class HASH,
class EQUAL>
void
swap(
FlatHashTable<KEY, ENTRY, ENTRY_UTIL, HASH, EQUAL>& a,
FlatHashTable<KEY, ENTRY, ENTRY_UTIL, HASH, EQUAL>& b);
This function provides the no-throw exception-safety guarantee if the two objects were created with the same allocator and the basic guarantee otherwise.
| Name | Description |
|---|---|
| a | first table to exchange |
| b | second table to exchange |