[#bsl-Vector_Util]
= xref:bsl.adoc[bsl]::Vector&lowbar;Util
:relfileprefix: ../
:mrdocs:

This `struct` provides a namespace for implementing the `swap` member function of `vector&lt;VALUE&lowbar;TYPE, ALLOCATOR&gt;`&period; `swap` can be implemented irrespective of the `VALUE&lowbar;TYPE` or `ALLOCATOR` template parameters, which is why we implement it in this non&hyphen;parameterized, non&hyphen;inlined utility&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct Vector&lowbar;Util;
----

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:bsl/Vector_Util/computeNewCapacity.adoc[`computeNewCapacity`] 
| Return a capacity that is at least the specified `newLength` and at least twice the specified `capacity` if this is less than the specified `maxSize`, but never more than `maxSize`&period; The behavior is undefined unless `capacity &lt; newLength` and `newLength &lt;&equals; maxSize`&period;
| xref:bsl/Vector_Util/swap.adoc[`swap`] 
| Exchange the value of the specified `a` vector with that of the specified `b` vector&period;
|===



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