[#bsl-swap-03d7]
= xref:bsl.adoc[bsl]::swap
:relfileprefix: ../
:mrdocs:

Exchange the values of the specified `a` and `b` objects&period;

== Synopsis

Declared in `&lt;bslstl&lowbar;unorderedmultiset&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class KEY,
    class HASH,
    class EQUAL,
    class ALLOCATOR&gt;
void
swap(
    xref:bsl/unordered_multiset-06c.adoc[unordered&lowbar;multiset&lt;KEY, HASH, EQUAL, ALLOCATOR&gt;]& a,
    xref:bsl/unordered_multiset-06c.adoc[unordered&lowbar;multiset&lt;KEY, HASH, EQUAL, ALLOCATOR&gt;]& b) noexcept(noexcept(a&period;swap(b)));
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| first unordered multiset to swap
| *b*
| second unordered multiset to swap
|===


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