[#bsl-vector-086-swap]
= xref:bsl.adoc[bsl]::xref:bsl/vector-086.adoc[vector&lt;VALUE&lowbar;TYPE*, ALLOCATOR&gt;]::swap
:relfileprefix: ../../
:mrdocs:

Exchange the contents of this vector with those of the specified `other`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
swap(xref:bsl/vector-086.adoc[vector&lt;VALUE&lowbar;TYPE*, ALLOCATOR&gt;]& other) noexcept(&sol;&ast; see-below &ast;&sol;);
----

== Exception specification

This function is potentially-throwing unless `noexcept(this&hyphen;&gt;d&lowbar;impl&period;swap(other&period;d&lowbar;impl))`.

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| vector with which to exchange contents
|===


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