Namespaces
Variants
Views
Actions

std::allocator::max_size

From cppreference.com
< cpp‎ | memory‎ | allocator
Revision as of 22:11, 31 May 2013 by P12bot (Talk | contribs)

Defined in header <memory>
size_type max_size() const

Returns the maximum theoretically possible value of n, for which the call allocate(n, 0) could succeed.

In most implementations, this returns std::numeric_limits<size_type>::max().

Contents

Parameters

(none)

Return value

The maximum supported allocation size

Exceptions

noexcept specification:  
noexcept
  

See also

[static]
returns the maximum object size supported by the allocator
(public static member function of std::allocator_traits) [edit]