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

Fallback `max&lowbar;size` implementation when the allocator does not provide its own `max&lowbar;size` member function&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class T,
    class = void&gt;
struct AllocatorTraits&lowbar;CallMaxSize;
----

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslma/AllocatorTraits_CallMaxSize-07/SizeType.adoc[`SizeType`] 
| Alias to `AllocatorTraits&lowbar;SizeType&lt;T&gt;&colon;&colon;type`&period;
|===


== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslma/AllocatorTraits_CallMaxSize-07/max_size.adoc[`max&lowbar;size`] 
| Return the maximum size of the specified (template) parameter `T`&period;
|===


== Specializations

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslma/AllocatorTraits_CallMaxSize-03.adoc[`AllocatorTraits&lowbar;CallMaxSize&lt;T, bsl::void&lowbar;t&lt;decltype(bslmf&colon;&colon;Util&colon;&colon;declval&lt;T&gt;()&period;max&lowbar;size())&gt;&gt;`] 
| `max&lowbar;size` implementation that forwards to the allocator&apos;s member&period;
|===



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