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

Constructors

== Synopses

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

Create a proxy that forwards to the default test allocator&period;


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

[.small]#xref:BloombergLP/bslma/StdTestAllocator/2constructor-06.adoc[_» more&period;&period;&period;_]#

Create a proxy object using the same mechanism as the specified `original`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslma/StdTestAllocator/2constructor-0c.adoc[StdTestAllocator](xref:BloombergLP/bslma/StdTestAllocator.adoc[StdTestAllocator] const& original);
----

[.small]#xref:BloombergLP/bslma/StdTestAllocator/2constructor-0c.adoc[_» more&period;&period;&period;_]#

Create a proxy sharing the same mechanism as the specified `rhs`&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class ANY&lowbar;TYPE&gt;
xref:BloombergLP/bslma/StdTestAllocator/2constructor-04.adoc[StdTestAllocator](xref:BloombergLP/bslma/StdTestAllocator.adoc[StdTestAllocator&lt;ANY&lowbar;TYPE&gt;] const& rhs);
----

[.small]#xref:BloombergLP/bslma/StdTestAllocator/2constructor-04.adoc[_» more&period;&period;&period;_]#

Create a proxy that forwards to the specified `mechanism`&period;


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

[.small]#xref:BloombergLP/bslma/StdTestAllocator/2constructor-0e.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *original*
| The test allocator whose mechanism is shared&period;
| *rhs*
| The test allocator whose mechanism is shared&period;
| *mechanism*
| The test allocator used as the allocation mechanism&period;
|===


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