|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
(until C++20) | ||||
(C++23) | ||||
allocator::max_size (until C++20) | ||||
(until C++20) | ||||
(until C++20) | ||||
| Non-member functions | ||||
(until C++20) |
size_type max_size()constthrow(); | (until C++11) | |
size_type max_size()constnoexcept; | (since C++11) (deprecated in C++17) (removed in C++20) | |
Returns the maximum theoretically possible value ofn, for which the callallocate(n,0) could succeed.
In most implementations, this returnsstd::numeric_limits<size_type>::max()/ sizeof(value_type).
(none)
The maximum supported allocation size.
[static] | returns the maximum object size supported by the allocator (public static member function of std::allocator_traits<Alloc>)[edit] |