[#BloombergLP-bsltf-StdTestAllocator_CommonUtil]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsltf.adoc[bsltf]::StdTestAllocator&lowbar;CommonUtil
:relfileprefix: ../../
:mrdocs:

This `struct` provides a namespace for utilities that are common to all instantiations of the `StdTestAllocator` class template&period;

== Synopsis

Declared in `&lt;bsltf&lowbar;stdtestallocator&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct StdTestAllocator&lowbar;CommonUtil;
----

== Static Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bsltf/StdTestAllocator_CommonUtil/maxSize.adoc[`maxSize`] 
| Return the maximum number of objects, each taking the specified `elementSize` bytes of storage, that can potentially be allocated by a `StdTestAllocator`&period; 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&period;
|===



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