A BumpPtrAllocator that allows only elements of a specific type to be allocated.

Synopsis

Declared in <llvm/Support/Allocator.h>

template<typename T>
class SpecificBumpPtrAllocator;

Description

This allows calling the destructor in DestroyAll() and when the allocator is destroyed.

Member Functions

Name

Description

SpecificBumpPtrAllocator [constructor]

Constructors

~SpecificBumpPtrAllocator [destructor]

Destroy all allocated objects and release owned memory.

operator=

Move‐assign, taking ownership of RHS's underlying allocator.

Allocate

Allocate space for an array of objects without constructing them.

DestroyAll

Destroy every allocated object and reset the underlying bump allocator.

identifyObject

Return an index uniquely identifying Ptr in this allocator.

Created with MrDocs