bsl::vector<unsigned short>::max_size

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>

size_type
max_size() const noexcept;