Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::scoped_allocator_adaptor<OuterAlloc,InnerAlloc...>::max_size

Reports the maximum allocation size supported by the outer allocator, by calling std::allocator_traits<OuterAlloc>::max_size(outer_allocator()).

NotebookLM
Defined in header <scoped_allocator>
size_type max_size() const;
(since C++11)

Reports the maximum allocation size supported by the outer allocator, by calling std::allocator_traits<OuterAlloc>::max_size(outer_allocator()).

Parameters

(none)

Return value

The maximum allocation size for OuterAlloc.

See also

(until C++20)
returns the largest supported allocation size
(public member function of std::allocator<T>)
[static]
returns the maximum object size supported by the allocator
(public static member function of std::allocator_traits<Alloc>)

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.