[#BloombergLP-bsltf-StdTestAllocatorConfigurationGuard]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bsltf.adoc[bsltf]::StdTestAllocatorConfigurationGuard
:relfileprefix: ../../
:mrdocs:

Upon construction, an object of this class saves the current &ast;delegate allocator&ast; for `StdTestAllocator` and and installs the user&hyphen;specified allocator as the delegate allocator&period; The delegate allocator is the globally configured allocator to which an `StdTestAllocator` objects delegate their operations&period; On destruction, the original delegate allocator is restored&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class StdTestAllocatorConfigurationGuard;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bsltf/StdTestAllocatorConfigurationGuard/2constructor.adoc[`StdTestAllocatorConfigurationGuard`]         [.small]#[constructor]#
| Create a scoped guard that installs the specified `temporaryAllocator` as the delegate allocator&period;
| xref:BloombergLP/bsltf/StdTestAllocatorConfigurationGuard/2destructor.adoc[`&#126;StdTestAllocatorConfigurationGuard`] [.small]#[destructor]#
| Restore the delegate allocator that was in place when this scoped guard was created and destroy this guard&period;
|===



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