[#BloombergLP-bsltf-StdTestAllocator_CommonUtil-maxSize] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsltf.adoc[bsltf]::xref:BloombergLP/bsltf/StdTestAllocator_CommonUtil.adoc[StdTestAllocator_CommonUtil]::maxSize :relfileprefix: ../../../ :mrdocs: Return the maximum number of objects, each taking the specified `elementSize` bytes of storage, that can potentially be allocated by a `StdTestAllocator`. Note that this function is mostly about insulating consumers of this component from a standard header, so that this test component does not hide missing header dependencies in testing scenarios. == Synopsis Declared in `<bsltf_stdtestallocator.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- static size_t maxSize(size_t elementSize); ---- [.small]#Created with https://www.mrdocs.com[MrDocs]#