BloombergLP::bslma::AutoDeallocator::AutoDeallocator

Create an auto deallocator to manage a sequence of memory blocks.

Synopses

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...

Parameters

NameDescription
originThe address of the origin memory block pointer.
allocatorThe allocator used to deallocate managed memory blocks.
lengthThe signed length of the managed memory block sequence.