[#bsl-allocator_traits-0ae-max_size]
= xref:bsl.adoc[bsl]::xref:bsl/allocator_traits-0ae.adoc[allocator&lowbar;traits&lt;std::allocator&lt;ALLOCATOR&lowbar;TYPE&gt;&gt;]::max&lowbar;size
:relfileprefix: ../../
:mrdocs:

Return the maximum number of objects `allocate` can return&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
using Base::max&lowbar;size;
----

== Description

Return the largest number of `value&lowbar;type` objects that could reasonably be returned by a single invocation of `allocate` for `a`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *a*
| allocator whose maximum size is queried
|===


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