[#absl-swap-0f6]
= xref:absl.adoc[absl]::swap
:relfileprefix: ../
:mrdocs:

Swaps the contents of two `flat&lowbar;hash&lowbar;set` containers&period;

== Synopsis

Declared in `&lt;absl&sol;container&sol;flat&lowbar;hash&lowbar;set&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename T,
    typename H,
    typename E,
    typename A&gt;
void
swap(
    xref:absl/flat_hash_set.adoc[flat&lowbar;hash&lowbar;set&lt;T, H, E, A&gt;]& x,
    xref:absl/flat_hash_set.adoc[flat&lowbar;hash&lowbar;set&lt;T, H, E, A&gt;]& y) noexcept(noexcept(x&period;swap(y)));
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *x*
| The first container to swap&period;
| *y*
| The second container to swap&period;
|===


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