Namespaces
Variants
Views
Actions

std::allocator::max_size

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

Template:ddcl list begin <tr class="t-dsc-header">

<td>
Defined in header <memory>
</td>

<td></td> <td></td> <tr class="t-dcl-sep"><td></td><td></td><td></td></tr>

<tr class="t-dcl ">

<td class="t-dcl-nopad">
size_type max_size() const
</td>

<td class="t-dcl-nopad"> </td> <td class="t-dcl-nopad"> </td> </tr> Template:ddcl list end

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

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