std::allocator::max_size

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().

Parameters

(none).

Return value

The maximum supported allocation size.

Exceptions

(none) (until C++11)
noexcept specification:
noexcept
(since C++11)

See also

[static]
returns the maximum object size supported by the allocator
(public static member function of std::allocator_traits)
doc_CPP
2016-10-11 10:00:13
Comments
Leave a Comment

Please login to continue.