Return an upper bound on the largest number of elements this list can hold.

Synopsis

Declared in <bslstl_list.h>

list<VALUE, ALLOCATOR>::size_type
max_size() const noexcept;

Description

Note that the return value of this function does not guarantee that this list can successfully grow that large, or even close to that large without running out of resources.

Return Value

maximum number of elements this list can hold

Created with MrDocs