[#bsl-vectorBase-0fd-size] = xref:bsl.adoc[bsl]::xref:bsl/vectorBase-0fd.adoc[vectorBase<short>]::size :relfileprefix: ../../ :mrdocs: Return the number of elements in this vector. == Synopsis Declared in `<bslstl_vector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/vectorBase-06a/size_type.adoc[size_type] size() const noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#