Create a deallocator proctor that conditionally manages memory.
Declared in <bslma_deallocatorproctor.h>
DeallocatorProctor(
void* memory,
ALLOCATOR* allocator);
Create a deallocator proctor that conditionally manages the specified memory (if non-zero), and that uses the specified allocator to deallocate the block of memory managed by this proctor (if not released -- see release) upon destruction. The behavior is undefined unless allocator is non-zero and supplied memory. Note that allocator must remain valid throughout the lifetime of this proctor.
| Name | Description |
|---|---|
| memory | Memory block to manage, or 0 for none. |
| allocator | Allocator (or pool) used to deallocate managed memory. |