[#bsl-swap-020] = xref:bsl.adoc[bsl]::swap :relfileprefix: ../ :mrdocs: Swap the values of the specified `lhs` and `rhs` queues. == Synopsis Declared in `<bslstl_queue.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class VALUE, class CONTAINER> void swap( xref:bsl/queue-0a5.adoc[queue<VALUE, CONTAINER>]& lhs, xref:bsl/queue-0a5.adoc[queue<VALUE, CONTAINER>]& rhs) noexcept(false); ---- == Description Swap the value of the specified `lhs` queue with the value of the specified `rhs` queue. == Parameters [cols="1,4"] |=== | Name| Description | *lhs* | first queue to exchange | *rhs* | second queue to exchange |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#