[#BloombergLP-bslstl-swap-010] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::swap :relfileprefix: ../../ :mrdocs: `swap` overloads == Synopses Declared in `<bslstl_bidirectionalnodepool.h>` Swap the functors wrapped by `lhs` and `rhs`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class FUNCTOR> void xref:BloombergLP/bslstl/swap-044.adoc[swap]( xref:BloombergLP/bslstl/HashTable_ComparatorWrapper-0e.adoc[HashTable_ComparatorWrapper<FUNCTOR>]& lhs, xref:BloombergLP/bslstl/HashTable_ComparatorWrapper-0e.adoc[HashTable_ComparatorWrapper<FUNCTOR>]& rhs); ---- [.small]#xref:BloombergLP/bslstl/swap-044.adoc[_» more..._]# Swap the functors wrapped by `a` and `b`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template<class FUNCTOR> void xref:BloombergLP/bslstl/swap-040.adoc[swap]( xref:BloombergLP/bslstl/HashTable_HashWrapper-03.adoc[HashTable_HashWrapper<FUNCTOR>]& a, xref:BloombergLP/bslstl/HashTable_HashWrapper-03.adoc[HashTable_HashWrapper<FUNCTOR>]& b); ---- [.small]#xref:BloombergLP/bslstl/swap-040.adoc[_» more..._]# Exchange the nodes of the specified `a` and `b` objects. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class VALUE, class ALLOCATOR> void xref:BloombergLP/bslstl/swap-0ee.adoc[swap]( xref:BloombergLP/bslstl/BidirectionalNodePool.adoc[BidirectionalNodePool<VALUE, ALLOCATOR>]& a, xref:BloombergLP/bslstl/BidirectionalNodePool.adoc[BidirectionalNodePool<VALUE, ALLOCATOR>]& b); ---- [.small]#xref:BloombergLP/bslstl/swap-0ee.adoc[_» more..._]# Efficiently exchange the values of the specified `a` and `b` objects. This function provides the no‐throw exception‐safety guarantee. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class KEY, class COMPARATOR> void xref:BloombergLP/bslstl/swap-0a.adoc[swap]( xref:BloombergLP/bslstl/SetComparator.adoc[SetComparator<KEY, COMPARATOR>]& a, xref:BloombergLP/bslstl/SetComparator.adoc[SetComparator<KEY, COMPARATOR>]& b); ---- [.small]#xref:BloombergLP/bslstl/swap-0a.adoc[_» more..._]# Efficiently exchange the values of the specified `a` and `b` objects. This function provides the no‐throw exception‐safety guarantee. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class KEY, class VALUE, class COMPARATOR> void xref:BloombergLP/bslstl/swap-015.adoc[swap]( xref:BloombergLP/bslstl/MapComparator.adoc[MapComparator<KEY, VALUE, COMPARATOR>]& a, xref:BloombergLP/bslstl/MapComparator.adoc[MapComparator<KEY, VALUE, COMPARATOR>]& b); ---- [.small]#xref:BloombergLP/bslstl/swap-015.adoc[_» more..._]# Exchange the value and policies of `x` with those of `y`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class KEY_CONFIG, class HASHER, class COMPARATOR, class ALLOCATOR> void xref:BloombergLP/bslstl/swap-0e8.adoc[swap]( xref:BloombergLP/bslstl/HashTable.adoc[HashTable<KEY_CONFIG, HASHER, COMPARATOR, ALLOCATOR>]& x, xref:BloombergLP/bslstl/HashTable.adoc[HashTable<KEY_CONFIG, HASHER, COMPARATOR, ALLOCATOR>]& y); ---- [.small]#xref:BloombergLP/bslstl/swap-0e8.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *lhs* | first comparator wrapper to swap | *rhs* | second comparator wrapper to swap | *a* | first hash wrapper to swap | *b* | second hash wrapper to swap | *x* | first hash table to swap | *y* | second hash table to swap |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#