[#bsl-swap-07d] = xref:bsl.adoc[bsl]::swap :relfileprefix: ../ :mrdocs: Exchange the container and comparator of the specified `a` object with the container and comparator of the specified `b` object. == Synopsis Declared in `<bslstl_priorityqueue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class VALUE, class CONTAINER, class COMPARATOR> void swap( xref:bsl/priority_queue-034.adoc[priority_queue<VALUE, CONTAINER, COMPARATOR>]& a, xref:bsl/priority_queue-034.adoc[priority_queue<VALUE, CONTAINER, COMPARATOR>]& b) noexcept(false); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#