[#bsl-allocator_traits-05e-max_size] = xref:bsl.adoc[bsl]::xref:bsl/allocator_traits-05e.adoc[allocator_traits<allocator<TYPE>>]::max_size :relfileprefix: ../../ :mrdocs: Return the maximum number of elements allocatable by `m`. == Synopsis Declared in `<bslma_bslallocator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr static xref:bsl/allocator_traits-05e/size_type.adoc[size_type] max_size(xref:bsl/allocator_traits-05e/allocator_type.adoc[allocator_type] const& m); ---- == Description Return the maximum number of elements that the specified `m` allocator can allocate in a single call to `allocate`. == Return Value maximum number of elements allocatable by `m` == Parameters [cols="1,4"] |=== | Name| Description | *m* | allocator whose maximum size is returned |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#