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.
Exchange the contents of the two maps.
void
swap(
FlatHashMap<K, V, H, E>&,
FlatHashMap<K, V, H, E>&);
Exchange the contents of the two sets.
void
swap(
FlatHashSet<K, H, E>&,
FlatHashSet<K, H, E>&);
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);
Exchange the values of the specified a and b objects.
template<class TYPE>
void
swap(
PackedIntArray<TYPE>& a,
PackedIntArray<TYPE>& 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.
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.
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. 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);
Created with MrDocs