[#bsl-vector-020-max_size] = xref:bsl.adoc[bsl]::xref:bsl/vector-020.adoc[vector<float>]::max_size :relfileprefix: ../../ :mrdocs: Return a theoretical upper bound on the largest number of elements that this vector could possibly hold. Note that there is no guarantee that the vector can successfully grow to the returned size, or even close to that size without running out of resources. Also note that requests to create a vector longer than this number of elements are guaranteed to raise a `std::length_error` exception. == Synopsis Declared in `<bslstl_vector.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:bsl/vector-020/size_type.adoc[size_type] max_size() const noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#