[#BloombergLP-bslstl-swap-040]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslstl.adoc[bslstl]::swap
:relfileprefix: ../../
:mrdocs:

Swap the functors wrapped by `a` and `b`&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;hashtable&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class FUNCTOR&gt;
void
swap(
    xref:BloombergLP/bslstl/HashTable_HashWrapper-03.adoc[HashTable&lowbar;HashWrapper&lt;FUNCTOR&gt;]& a,
    xref:BloombergLP/bslstl/HashTable_HashWrapper-03.adoc[HashTable&lowbar;HashWrapper&lt;FUNCTOR&gt;]& b);
----

== Description

Swap the functor wrapped by the specified `a` object with the functor wrapped by the specified `b` object&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| first hash wrapper to swap
| *b*
| second hash wrapper to swap
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
