Change the allocator monitored by this object.
Synopsis
Declared in <bslma_testallocatormonitor.h>
void
reset(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
Name |
Description |
testAllocator |
The test allocator to monitor, or 0 to re‐initialize. |
Created with MrDocs