[#BloombergLP-bdlc-swap-00f] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::swap :relfileprefix: ../../ :mrdocs: `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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlc/swap-00b.adoc[swap]( xref:BloombergLP/bdlc/BitArray.adoc[BitArray]& a, xref:BloombergLP/bdlc/BitArray.adoc[BitArray]& b); ---- [.small]#xref:BloombergLP/bdlc/swap-00b.adoc[_» more..._]# Exchange the contents of the two maps. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlc/swap-05.adoc[swap]( xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap<K, V, H, E>]&, xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap<K, V, H, E>]&); ---- [.small]#xref:BloombergLP/bdlc/swap-05.adoc[_» more..._]# Exchange the contents of the two sets. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:BloombergLP/bdlc/swap-060.adoc[swap]( xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet<K, H, E>]&, xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet<K, H, E>]&); ---- [.small]#xref:BloombergLP/bdlc/swap-060.adoc[_» 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> void xref:BloombergLP/bdlc/swap-03.adoc[swap]( xref:BloombergLP/bdlc/CompactedArray.adoc[CompactedArray<TYPE>]& a, xref:BloombergLP/bdlc/CompactedArray.adoc[CompactedArray<TYPE>]& b); ---- [.small]#xref:BloombergLP/bdlc/swap-03.adoc[_» more..._]# Exchange the values of the specified `a` and `b` objects. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class TYPE> void xref:BloombergLP/bdlc/swap-01.adoc[swap]( xref:BloombergLP/bdlc/PackedIntArray-0b.adoc[PackedIntArray<TYPE>]& a, xref:BloombergLP/bdlc/PackedIntArray-0b.adoc[PackedIntArray<TYPE>]& b); ---- [.small]#xref:BloombergLP/bdlc/swap-01.adoc[_» 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class KEY, class HASH, class EQUAL> void xref:BloombergLP/bdlc/swap-0b8.adoc[swap]( xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet<KEY, HASH, EQUAL>]& a, xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet<KEY, HASH, EQUAL>]& b); ---- [.small]#xref:BloombergLP/bdlc/swap-0b8.adoc[_» 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class KEY, class VALUE, class HASH, class EQUAL> void xref:BloombergLP/bdlc/swap-061.adoc[swap]( xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap<KEY, VALUE, HASH, EQUAL>]& a, xref:BloombergLP/bdlc/FlatHashMap.adoc[FlatHashMap<KEY, VALUE, HASH, EQUAL>]& b); ---- [.small]#xref:BloombergLP/bdlc/swap-061.adoc[_» 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. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class KEY, class ENTRY, class ENTRY_UTIL, class HASH, class EQUAL> void xref:BloombergLP/bdlc/swap-0b6.adoc[swap]( xref:BloombergLP/bdlc/FlatHashTable.adoc[FlatHashTable<KEY, ENTRY, ENTRY_UTIL, HASH, EQUAL>]& a, xref:BloombergLP/bdlc/FlatHashTable.adoc[FlatHashTable<KEY, ENTRY, ENTRY_UTIL, HASH, EQUAL>]& b); ---- [.small]#xref:BloombergLP/bdlc/swap-0b6.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#