Namespaces
Variants
Views
Actions

std::allocator_traits::max_size

From cppreference.com
< cpp‎ | memory‎ | allocator traits
Revision as of 17:43, 2 November 2012 by P12bot (Talk | contribs)

Defined in header <memory>
static size_type max_size( Alloc& a )
(since C++11)

If possible, obtains the maximum theoretically possible allocation size from the allocator a, by calling

a.max_size()

If the above is not possible (e.g. a does not have the member function max_size(),), then returns

std::numeric_limits<size_type>::max()

Parameters

(none)

Return value

Theoretical maximum allocation size

See also

Template:cpp/memory/allocator/dcl list max size