[#BloombergLP-bslma-TestAllocator-2constructor-0b9]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/TestAllocator.adoc[TestAllocator]::TestAllocator
:relfileprefix: ../../../
:mrdocs:

Create an instrumented &quot;test&quot; allocator with the specified `name`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
TestAllocator(
    char const* name,
    xref:BloombergLP/bslma/Allocator.adoc[Allocator]* basicAllocator = 0);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *name*
| The diagnostic name for this test allocator&period;
| *basicAllocator*
| The allocator used to supply memory&period;
|===


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