swap overloads

Synopses

Declared in <bdlc_bitarray.h>

Exchange the values of the specified a and b objects.

void
swap(
    BitArray& a,
    BitArray& b);

Exchange the contents of the two maps.

Exchange the contents of the two sets.

Exchange the values of the specified a and b objects.

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

Exchange the values of the specified a and b objects.

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

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

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

Exchange the value of a with that of b.

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

Exchange the values of the specified a and b objects.

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);

Parameters

Name

Description

a

first object to exchange

b

second object to exchange

Created with MrDocs