[#bsl-queue-0a5-swap] = xref:bsl.adoc[bsl]::xref:bsl/queue-0a5.adoc[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_queue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(xref:bsl/queue-0a5.adoc[queue]& other) noexcept(/* see-below */); ---- == Exception specification This function is potentially-throwing unless `bsl::is_nothrow_swappable<CONTAINER>::value`. [.small]#Created with https://www.mrdocs.com[MrDocs]#