std::allocator<T>::max_size

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

# Declarations

size_type max_size() const throw();

(until C++11)

size_type max_size() const noexcept;

(since C++11) (deprecated in C++17) (removed in C++20)

# Return value

The maximum supported allocation size.

# See also