Change the allocator monitored by this object.
Declared in <bslma_testallocatormonitor.h>
void
reset(bslma::TestAllocator const* testAllocator = 0);
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.
| Name | Description |
|---|---|
| testAllocator | The test allocator to monitor, or 0 to re-initialize. |