[#bsl-allocator_traits-0ae-max_size] = xref:bsl.adoc[bsl]::xref:bsl/allocator_traits-0ae.adoc[allocator_traits<std::allocator<ALLOCATOR_TYPE>>]::max_size :relfileprefix: ../../ :mrdocs: The maximum supported allocation size == Synopsis Declared in `<bslma_allocatortraits.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static size_type max_size(_Alloc const& __a) noexcept; ---- == Description Returns `__a.max_size()` if that expression is well‐formed, otherwise returns `numeric_limits<size_type>::max()` == Return Value `__a.max_size()` or `numeric_limits<size_type>::max()` == Parameters [cols="1,4"] |=== | Name| Description | *__a* | An allocator. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#