[#absl-swap-00e] = xref:absl.adoc[absl]::swap :relfileprefix: ../ :mrdocs: `swap` overloads == Synopses Declared in `<absl/status/status.h>` swap() [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:absl/swap-0f9.adoc[swap]( xref:absl/AnyInvocable.adoc[AnyInvocable]& f1, xref:absl/AnyInvocable.adoc[AnyInvocable]& f2) noexcept; ---- [.small]#xref:absl/swap-0f9.adoc[_» more..._]# Swaps the contents of two Cords. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:absl/swap-0d.adoc[swap]( xref:absl/Cord.adoc[Cord]& x, xref:absl/Cord.adoc[Cord]& y) noexcept; ---- [.small]#xref:absl/swap-0d.adoc[_» more..._]# Swaps the contents of one status with another. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void xref:absl/swap-028.adoc[swap]( xref:absl/Status.adoc[Status]& a, xref:absl/Status.adoc[Status]& b) noexcept; ---- [.small]#xref:absl/swap-028.adoc[_» more..._]# Swaps the contents of two inlined vectors. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, size_t N, typename A> void xref:absl/swap-0a.adoc[swap]( xref:absl/InlinedVector.adoc[absl::InlinedVector<T, N, A>]& a, xref:absl/InlinedVector.adoc[absl::InlinedVector<T, N, A>]& b) noexcept(noexcept(a.swap(b))); ---- [.small]#xref:absl/swap-0a.adoc[_» more..._]# Swaps the contents of two `absl::btree_multiset` containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename K, typename C, typename A> void xref:absl/swap-06.adoc[swap]( xref:absl/btree_multiset.adoc[btree_multiset<K, C, A>]& x, xref:absl/btree_multiset.adoc[btree_multiset<K, C, A>]& y); ---- [.small]#xref:absl/swap-06.adoc[_» more..._]# Swaps the contents of two `absl::btree_set` containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename K, typename C, typename A> void xref:absl/swap-0ef.adoc[swap]( xref:absl/btree_set.adoc[btree_set<K, C, A>]& x, xref:absl/btree_set.adoc[btree_set<K, C, A>]& y); ---- [.small]#xref:absl/swap-0ef.adoc[_» more..._]# Swaps the contents of two `absl::btree_map` containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename K, typename V, typename C, typename A> void xref:absl/swap-04.adoc[swap]( xref:absl/btree_map.adoc[btree_map<K, V, C, A>]& x, xref:absl/btree_map.adoc[btree_map<K, V, C, A>]& y); ---- [.small]#xref:absl/swap-04.adoc[_» more..._]# Swaps the contents of two `absl::btree_multimap` containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename K, typename V, typename C, typename A> void xref:absl/swap-000.adoc[swap]( xref:absl/btree_multimap.adoc[btree_multimap<K, V, C, A>]& x, xref:absl/btree_multimap.adoc[btree_multimap<K, V, C, A>]& y); ---- [.small]#xref:absl/swap-000.adoc[_» more..._]# Swaps the contents of two `absl::chunked_queue` containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, size_t BLo, size_t BHi, typename Allocator> void xref:absl/swap-027.adoc[swap]( xref:absl/chunked_queue.adoc[chunked_queue<T, BLo, BHi, Allocator>]& a, xref:absl/chunked_queue.adoc[chunked_queue<T, BLo, BHi, Allocator>]& b) noexcept; ---- [.small]#xref:absl/swap-027.adoc[_» more..._]# Swaps the contents of two `flat_hash_set` containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename H, typename E, typename A> void xref:absl/swap-0f6.adoc[swap]( xref:absl/flat_hash_set.adoc[flat_hash_set<T, H, E, A>]& x, xref:absl/flat_hash_set.adoc[flat_hash_set<T, H, E, A>]& y) noexcept(noexcept(x.swap(y))); ---- [.small]#xref:absl/swap-0f6.adoc[_» more..._]# Swaps the contents of two `node_hash_set` containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename T, typename H, typename E, typename A> void xref:absl/swap-0fd.adoc[swap]( xref:absl/node_hash_set.adoc[node_hash_set<T, H, E, A>]& x, xref:absl/node_hash_set.adoc[node_hash_set<T, H, E, A>]& y) noexcept(noexcept(x.swap(y))); ---- [.small]#xref:absl/swap-0fd.adoc[_» more..._]# Swaps the contents of two `flat_hash_map` containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename K, typename V, typename H, typename E, typename A> void xref:absl/swap-03.adoc[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))); ---- [.small]#xref:absl/swap-03.adoc[_» more..._]# Swaps the contents of two `node_hash_map` containers. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename K, typename V, typename H, typename E, typename A> void xref:absl/swap-0e2.adoc[swap]( xref:absl/node_hash_map.adoc[node_hash_map<K, V, H, E, A>]& x, xref:absl/node_hash_map.adoc[node_hash_map<K, V, H, E, A>]& y) noexcept(noexcept(x.swap(y))); ---- [.small]#xref:absl/swap-0e2.adoc[_» more..._]# == Parameters [cols="1,4"] |=== | Name| Description | *f1* | The first `AnyInvocable` to swap. | *f2* | The second `AnyInvocable` to swap. | *x* | The first Cord. | *y* | The second Cord. | *a* | The first status. | *b* | The second status. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#