[#BloombergLP-bslma-AllocatorTraits_CallMaxSize-03-max_size] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/AllocatorTraits_CallMaxSize-03.adoc[AllocatorTraits_CallMaxSize<T, bsl::void_t<decltype(bslmf::Util::declval<T>().max_size())>>]::max_size :relfileprefix: ../../../ :mrdocs: Return the maximum size of the specified `alloc`. == Synopsis Declared in `<bslma_allocatortraits.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static xref:BloombergLP/bslma/AllocatorTraits_CallMaxSize-03/SizeType.adoc[SizeType] max_size(T const& alloc); ---- == Description Also note that this method is defined inline to work around a Windows compiler bug with SFINAE functions. == Return Value maximum number of elements allocatable by `alloc` == Parameters [cols="1,4"] |=== | Name| Description | *alloc* | allocator whose `max_size` member is invoked |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#