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

Swaps the contents of two `node&lowbar;hash&lowbar;map` containers&period;

== Synopsis

Declared in `&lt;absl&sol;container&sol;node&lowbar;hash&lowbar;map&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename K,
    typename V,
    typename H,
    typename E,
    typename A&gt;
void
swap(
    xref:absl/node_hash_map.adoc[node&lowbar;hash&lowbar;map&lt;K, V, H, E, A&gt;]& x,
    xref:absl/node_hash_map.adoc[node&lowbar;hash&lowbar;map&lt;K, V, 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]#
