[#bsl-swap-075]
= xref:bsl.adoc[bsl]::swap
:relfileprefix: ../
:mrdocs:

Exchange the contents of the specified hash sets&period;

== Synopsis

Declared in `&lt;bslstp&lowbar;hashset&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class &lowbar;Value,
    class &lowbar;HashFcn,
    class &lowbar;EqualKey,
    class &lowbar;Alloc&gt;
void
swap(
    xref:bsl/hash_set.adoc[hash&lowbar;set&lt;&lowbar;Value, &lowbar;HashFcn, &lowbar;EqualKey, &lowbar;Alloc&gt;]& lhs,
    xref:bsl/hash_set.adoc[hash&lowbar;set&lt;&lowbar;Value, &lowbar;HashFcn, &lowbar;EqualKey, &lowbar;Alloc&gt;]& rhs);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| first hash set whose contents are exchanged
| *rhs*
| second hash set whose contents are exchanged
|===


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