[#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: Return the maximum number of objects `allocate` can return. == Synopsis Declared in `<bslma_allocatortraits.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- using Base::max_size; ---- == Description Return the largest number of `value_type` objects that could reasonably be returned by a single invocation of `allocate` for `a`. == Parameters [cols="1,4"] |=== | Name| Description | *a* | allocator whose maximum size is queried |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#