Reference
C Library
IOstream Library
Strings library
STL Containers
STL Algorithms
Miscellaneous
Miscellaneous
complex
exception
functional
iterator
limits
locale
memory
new
numeric
stdexcept
typeinfo
utility
valarray
memory
classes:
allocator
auto_ptr
auto_ptr_ref
raw_storage_iterator
functions:
get_temporary_buffer
return_temporary_buffer
uninitialized_copy
uninitialized_fill
uninitialized_fill_n
allocator
allocator::allocator
allocator::~allocator
member functions:
allocator::address
allocator::allocate
allocator::construct
allocator::deallocate
allocator::destroy
allocator::max_size


allocator::max_size

public member function
size_type max_size() const throw();

Maximum size possible to allocate

Returns the maximum number of elements of type T (the template parameter) that could 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 of type T that might be allocated as maximum by a call to member allocate.
In allocator, the member type size_type is an alias of size_t, which is an unsigned integral type.