[#bsl-swap-020]
= xref:bsl.adoc[bsl]::swap
:relfileprefix: ../
:mrdocs:

Swap the values of the specified `lhs` and `rhs` queues&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class VALUE,
    class CONTAINER&gt;
void
swap(
    xref:bsl/queue-0a5.adoc[queue&lt;VALUE, CONTAINER&gt;]& lhs,
    xref:bsl/queue-0a5.adoc[queue&lt;VALUE, CONTAINER&gt;]& rhs) noexcept(false);
----

== Description

Swap the value of the specified `lhs` queue with the value of the specified `rhs` queue&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *lhs*
| first queue to exchange
| *rhs*
| second queue to exchange
|===


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