[#bsl-priority_queue-034-swap]
= xref:bsl.adoc[bsl]::xref:bsl/priority_queue-034.adoc[priority&lowbar;queue]::swap
:relfileprefix: ../../
:mrdocs:

Efficiently exchange the value of this object with the value of the specified `other` object&period; In effect, performs `using bsl&colon;&colon;swap&semi; swap(c, other&period;c)&semi;`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
swap(xref:bsl/priority_queue-034.adoc[priority&lowbar;queue]& other) noexcept(&sol;&ast; see-below &ast;&sol;);
----

== Exception specification

This function is potentially-throwing unless `bsl&colon;&colon;is&lowbar;nothrow&lowbar;swappable&lt;CONTAINER&gt;&colon;&colon;value &amp;&amp; bsl&colon;&colon;is&lowbar;nothrow&lowbar;swappable&lt;COMPARATOR&gt;&colon;&colon;value`.


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