[#BloombergLP-bslma-AllocatorTraits_CallMaxSize-07] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::AllocatorTraits_CallMaxSize :relfileprefix: ../../ :mrdocs: Fallback `max_size` implementation when the allocator does not provide its own `max_size` member function. == Synopsis Declared in `<bslma_allocatortraits.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< class T, class = void> struct AllocatorTraits_CallMaxSize; ---- == Type Aliases [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslma/AllocatorTraits_CallMaxSize-07/SizeType.adoc[`SizeType`] | Alias to `AllocatorTraits_SizeType<T>::type`. |=== == Static Member Functions [cols="1,4"] |=== | Name| Description | xref:BloombergLP/bslma/AllocatorTraits_CallMaxSize-07/max_size.adoc[`max_size`] | Return the maximum size of the specified (template) parameter `T`. Also note that this method is defined inline to work around a Windows compiler bug with SFINAE functions. |=== == Specializations [cols="1"] |=== | Name | xref:BloombergLP/bslma/AllocatorTraits_CallMaxSize-03.adoc[`AllocatorTraits_CallMaxSize<T, bsl::void_t<decltype(bslmf::Util::declval<T>().max_size())>>`] |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#