[#BloombergLP-bslma-TestAllocator-stashStatistics]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/TestAllocator.adoc[TestAllocator]::stashStatistics
:relfileprefix: ../../../
:mrdocs:

Return the current statistics that may later be passed to `restoreStatistics`, and reset the current statistic as follows&colon;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bslma/TestAllocatorStashedStatistics.adoc[TestAllocatorStashedStatistics]
stashStatistics();
----

== Description

Statistic &verbar; Reset value to &hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen; &verbar; &hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen;&hyphen; numAllocations &verbar; numBlocksInUse numDeallocations &verbar; ZERO numMismatches &verbar; ZERO numBoundsErrors &verbar; ZERO numBlocksMax &verbar; numBlocksInUse numBytesMax &verbar; numBytesInUse numBlocksTotal &verbar; numBlocksInUse numBytesTotal &verbar; numBytesInUse

See also `restoreStatistics`&period;

== Return Value

current statistics suitable for later `restoreStatistics`


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