[#BloombergLP-bslma-AllocatorTraits_CallMaxSize-07-max_size]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/AllocatorTraits_CallMaxSize-07.adoc[AllocatorTraits&lowbar;CallMaxSize]::max&lowbar;size
:relfileprefix: ../../../
:mrdocs:

Return the maximum size of the specified (template) parameter `T`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bslma/AllocatorTraits_CallMaxSize-07/SizeType.adoc[SizeType]
max&lowbar;size(T const& alloc);
----

== Description

Also note that this method is defined inline to work around a Windows compiler bug with SFINAE functions&period;

== Return Value

maximum number of elements allocatable by `T`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *alloc*
| allocator ignored by the fallback implementation
|===


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