#include ">

LLVM: include/llvm/Support/AllocatorBase.h File Reference (original) (raw)

#include "[llvm/Support/Compiler.h](Compiler%5F8h%5Fsource.html)"
#include "[llvm/Support/MemAlloc.h](MemAlloc%5F8h%5Fsource.html)"
#include <type_traits>
#include <utility>

This file defines MallocAllocator.

MallocAllocator conforms to the LLVM "Allocator" concept which consists of an Allocate method accepting a size and alignment, and a Deallocate accepting a pointer and size. Further, the LLVM "Allocator" concept has overloads of Allocate and Deallocate for setting size and alignment based on the final type. These overloads are typically provided by a base class template AllocatorBase.

Definition in file AllocatorBase.h.