[#absl-swap-03] = xref:absl.adoc[absl]::swap :relfileprefix: ../ :mrdocs: Swaps the contents of two `flat_hash_map` containers. == Synopsis Declared in `<absl/container/flat_hash_map.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename K, typename V, typename H, typename E, typename A> void swap( xref:absl/flat_hash_map.adoc[flat_hash_map<K, V, H, E, A>]& x, xref:absl/flat_hash_map.adoc[flat_hash_map<K, V, H, E, A>]& y) noexcept(noexcept(x.swap(y))); ---- == Parameters [cols="1,4"] |=== | Name| Description | *x* | The first container to swap. | *y* | The second container to swap. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#