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

Exchange the value of this set with that of the specified `other`&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]& other);
----

== Description

Exchange the value of this object as well as its hasher and equality functors with those of the specified `other` object&period; The behavior is undefined unless this object was created with the same allocator as `other`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| set to exchange with
|===


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