[#bsl-priority_queue-034-swap] = xref:bsl.adoc[bsl]::xref:bsl/priority_queue-034.adoc[priority_queue]::swap :relfileprefix: ../../ :mrdocs: Efficiently exchange the value of this object with the value of the specified `other` object. In effect, performs `using bsl::swap; swap(c, other.c);`. == Synopsis Declared in `<bslstl_priorityqueue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(xref:bsl/priority_queue-034.adoc[priority_queue]& other) noexcept(/* see-below */); ---- == Exception specification This function is potentially-throwing unless `bsl::is_nothrow_swappable<CONTAINER>::value && bsl::is_nothrow_swappable<COMPARATOR>::value`. [.small]#Created with https://www.mrdocs.com[MrDocs]#