[#bsl-vectorBase-09-capacity]
= xref:bsl.adoc[bsl]::xref:bsl/vectorBase-09.adoc[vectorBase&lt;bool&gt;]::capacity
:relfileprefix: ../../
:mrdocs:

Return the capacity of this vector, i&period;e&period;, the maximum number of elements for which resizing is guaranteed not to trigger a reallocation&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:bsl/vectorBase-06a/size_type.adoc[size&lowbar;type]
capacity() const noexcept;
----


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