[#bsl-allocator-0df-max_size]
= xref:bsl.adoc[bsl]::xref:bsl/allocator-0df.adoc[allocator]::max&lowbar;size
:relfileprefix: ../../
:mrdocs:

Return the maximum number of elements of (template parameter) `TYPE` that can be allocated using this allocator&period; Note that there is no guarantee that attempts at allocating fewer elements than the value returned by `max&lowbar;size` will not throw&period;

== Synopsis

Declared in `&lt;bslma&lowbar;bslallocator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
constexpr
xref:bsl/allocator-0df/size_type.adoc[allocator&lt;TYPE&gt;::size&lowbar;type]
max&lowbar;size() const;
----


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