[#bsl-vectorBase-068-capacity] = xref:bsl.adoc[bsl]::xref:bsl/vectorBase-068.adoc[vectorBase<double>]::capacity :relfileprefix: ../../ :mrdocs: Return the capacity of this vector, i.e., the maximum number of elements for which resizing is guaranteed not to trigger a reallocation. == Synopsis Declared in `<bslstl_vector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/vectorBase-06a/size_type.adoc[size_type] capacity() const noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#