[#BloombergLP-bslma-StdTestAllocator-max_size] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/StdTestAllocator.adoc[StdTestAllocator]::max_size :relfileprefix: ../../../ :mrdocs: Return the maximum number of elements of (template parameter) `TYPE` that can be allocated using this test allocator. Note that there is no guarantee that attempts at allocating fewer elements than the value returned by `max_size` will not throw. == Synopsis Declared in `<bslma_stdtestallocator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:BloombergLP/bslma/StdTestAllocator/size_type.adoc[StdTestAllocator<TYPE>::size_type] max_size() const; ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#