Create an auto deallocator to manage a sequence of memory blocks.
Declared in <bslma_autodeallocator.h>
Create an auto deallocator to manage a sequence of memory blocks.
AutoDeallocator(
void** origin,
ALLOCATOR* allocator,
int length = 0);
» more...
Create an auto deallocator to manage a sequence of memory blocks.
template<class TYPE>
AutoDeallocator(
TYPE** origin,
ALLOCATOR* allocator,
int length = 0);
» more...
| Name | Description |
|---|---|
| origin | The address of the origin memory block pointer. |
| allocator | The allocator used to deallocate managed memory blocks. |
| length | The signed length of the managed memory block sequence. |