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

Create a `TestAllocatorStatisticsGuard` object to stash, reset, and restore statistics of the specified `testAllocator`&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
explicit
TestAllocatorStatisticsGuard(xref:BloombergLP/bslma/TestAllocator.adoc[TestAllocator]* testAllocator);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *testAllocator*
| The test allocator whose statistics are guarded&period;
|===


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