Restore the statistics from the specified savedStatistics by appropriately combining the current values and the saved values. The behavior is undefined unless savedStatistics is a value returned by a previous call to stashStatictics on this same object, which has not been passed to restoreStatistics yet. This method restores the state of the statistics as if the corresponding stashStatistics call has never happened, in the following manner:
Declared in <bslma_testallocator.h>
void
restoreStatistics(TestAllocatorStashedStatistics* savedStatistics);
Statistic | Restore value as ---------------- | --------------------------------------------------- numAllocations | saved + current - saved.numBlocksInUse numDeallocations | saved.numDeallocations + current.numDeallocations numMismatches | saved.numMismatches + current.numMismatches numBoundsErrors | saved.numBoundsErrors + current.numBoundsErrors numBlocksMax | max(saved.numBlocksMax, current.numBlocksMax) numBytesMax | max(saved.numBytesMax, current.numBytesMax) numBlocksTotal | saved + current - saved.numBlocksInUse numBytesTotal | saved + current - saved.numBytesInUse
See also stashStatistics.