[#BloombergLP-bdlc-swap-060]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlc.adoc[bdlc]::swap
:relfileprefix: ../../
:mrdocs:

Exchange the contents of the two sets&period;

== Synopsis

Declared in `&lt;bdlc&lowbar;flathashset&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
swap(
    xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet&lt;K, H, E&gt;]& a,
    xref:BloombergLP/bdlc/FlatHashSet.adoc[FlatHashSet&lt;K, H, E&gt;]& b);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| first set to exchange
| *b*
| second set to exchange
|===


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