[#bsl-vector-086-swap] = xref:bsl.adoc[bsl]::xref:bsl/vector-086.adoc[vector<VALUE_TYPE*, ALLOCATOR>]::swap :relfileprefix: ../../ :mrdocs: Exchange the contents of this vector with those of the specified `other`. == Synopsis Declared in `<bslstl_vector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void swap(xref:bsl/vector-086.adoc[vector<VALUE_TYPE*, ALLOCATOR>]& other) noexcept(/* see-below */); ---- == Exception specification This function is potentially-throwing unless `noexcept(this‐>d_impl.swap(other.d_impl))`. == Parameters [cols="1,4"] |=== | Name| Description | *other* | vector with which to exchange contents |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#