std::allocator<T>::max_size
C++11 起,C++17 中弃用,C++20 中移除
size_type max_size() const noexcept;
直到 C++11
size_type max_size() const throw();
返回 `allocate(n, 0)` 调用可能成功的前提下 `n` 的理论最大可能值。
在大多数实现中,这会返回 `std::numeric_limits<size_type>::max() / sizeof(value_type)`。
(无)
返回值
支持的最大分配大小