public member function
<memory>

std::allocator::max_size

size_type max_size() const throw();
size_type max_size() const noexcept;
Maximum size possible to allocate
Returns the maximum number of elements, each of member type value_type (an alias of allocator's template parameter) that could potentially be allocated by a call to member allocate.

A call to member allocate with the value returned by this function can still fail to allocate the requested storage.

Parameters

none

Return value

The number of elements that might be allocated as maximum by a call to member allocate.

The member type size_type is an alias of size_t (in the standard default allocator). size_t is an unsigned integral type.