[#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. == Synopsis Declared in `<bslma_testallocatormonitor.h>` [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`. If no `testAllocator` is passed, do not modify the allocator held by this object and re‐initialize the allocator properties monitored by this object to the current state of that allocator. == Parameters [cols="1,4"] |=== | Name| Description | *testAllocator* | The test allocator to monitor, or 0 to re‐initialize. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#