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);

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

template<class TYPE>
AutoDeallocator(
    TYPE** origin,
    ALLOCATOR* allocator,
    int length = 0);

Parameters

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.

Created with MrDocs