[#BloombergLP-bslma-TestAllocatorMonitor-reset]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslma.adoc[bslma]::xref:BloombergLP/bslma/TestAllocatorMonitor.adoc[TestAllocatorMonitor]::reset
:relfileprefix: ../../../
:mrdocs:

Change the allocator monitored by this object&period;

== Synopsis

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

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

== Description

Change the allocator monitored by this object to the specified `testAllocator` and initialize the allocator properties monitored by this object to the current state of `testAllocator`&period; If no `testAllocator` is passed, do not modify the allocator held by this object and re&hyphen;initialize the allocator properties monitored by this object to the current state of that allocator&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *testAllocator*
| The test allocator to monitor, or 0 to re&hyphen;initialize&period;
|===


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