BloombergLP::bdlc::swap

swap overloads

Synopses

Declared in <bdlc_bitarray.h>

Exchange the values 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.

void
swap(
    BitArray& a,
    BitArray& b);
» more...

Exchange the contents of the two maps.

void
swap(
    FlatHashMap<K, V, H, E>&,
    FlatHashMap<K, V, H, E>&);
» more...

Exchange the contents of the two sets.

void
swap(
    FlatHashSet<K, H, E>&,
    FlatHashSet<K, H, E>&);
» more...

Exchange the values 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.

template<class TYPE>
void
swap(
    CompactedArray<TYPE>& a,
    CompactedArray<TYPE>& b);
» more...

Exchange the values of the specified a and b objects.

template<class TYPE>
void
swap(
    PackedIntArray<TYPE>& a,
    PackedIntArray<TYPE>& b);
» more...

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.

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

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.

template<
    class KEY,
    class VALUE,
    class HASH,
    class EQUAL>
void
swap(
    FlatHashMap<KEY, VALUE, HASH, EQUAL>& a,
    FlatHashMap<KEY, VALUE, HASH, EQUAL>& b);
» more...

Exchange the values 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.

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);
» more...