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