[#bsl-allocator_traits-0108-max_size] = xref:bsl.adoc[bsl]::xref:bsl/allocator_traits-0108.adoc[allocator_traits]::max_size :relfileprefix: ../../ :mrdocs: Return the largest number of `value_type` objects that could reasonably be returned by a single invocation of `allocate` for the specified `allocator`, i.e., `allocator.max_size()`. == Synopsis Declared in `<bslma_allocatortraits.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:bsl/allocator_traits-0108/size_type.adoc[size_type] max_size(ALLOCATOR_TYPE const& basicAllocator) noexcept; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#