Exchange the value, hasher, and key‐equality functor of two sets.

Synopsis

Declared in <bdlc_flathashset.h>

template<
    class KEY,
    class HASH,
    class EQUAL>
void
swap(
    FlatHashSet<KEY, HASH, EQUAL>& a,
    FlatHashSet<KEY, HASH, EQUAL>& b);

Description

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.

Parameters

Name

Description

a

first set to exchange

b

second set to exchange

Created with MrDocs