Exchange the value, hasher, and key-equality functor of two sets.
Declared in <bdlc_flathashset.h>
template<
class KEY,
class HASH,
class EQUAL>
void
swap(
FlatHashSet<KEY, HASH, EQUAL>& a,
FlatHashSet<KEY, HASH, EQUAL>& b);
Exchange the value, the hasher, and the key-equality functor of the specified a and b objects. 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 set to exchange |
| b | second set to exchange |