[#BloombergLP-bsltf-StdTestAllocator-05-max_size]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsltf.adoc[bsltf]::xref:BloombergLP/bsltf/StdTestAllocator-05.adoc[StdTestAllocator]::max&lowbar;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&period; Note that there is no guarantee that attempts at allocating less elements than the value returned by `max&lowbar;size` will not throw&period;

== Synopsis

Declared in `&lt;bsltf&lowbar;stdtestallocator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bsltf/StdTestAllocator-05/size_type.adoc[StdTestAllocator&lt;TYPE&gt;::size&lowbar;type]
max&lowbar;size() const;
----


[.small]#Created with https://www.mrdocs.com[MrDocs]#
