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

TBD&colon; fix comment to mention that `mechanism` has to be a test allocator&period; Convert a `bslma&colon;&colon;Allocator` pointer to an test allocator object which forwards allocation calls to the object pointed to by the specified `mechanism`&period; If `mechanism` is 0, then the currently installed default allocator is used instead&period; Postcondition&colon; `0 &equals;&equals; mechanism &verbar;&verbar; this&hyphen;&gt;mechanism() &equals;&equals; mechanism`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
StdTestAllocator(xref:BloombergLP/bslma/Allocator.adoc[Allocator]* mechanism);
----


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