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

Exchange the values of the specified `a` and `b` objects&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
swap(
    xref:bsl/vector-00d.adoc[vector&lt;char const*&gt;]& a,
    xref:bsl/vector-00d.adoc[vector&lt;char const*&gt;]& b) noexcept(noexcept(a&period;d&lowbar;impl&period;swap(b&period;d&lowbar;impl)));
----


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