#include <slang/util/BumpAllocator.h>
template<typename T>
TypedBumpAllocator class
A strongly-typed version of the BumpAllocator, which has the additional behavior of calling destructors on all elements when the allocator itself is destructed.
Base classes
- class BumpAllocator
- BumpAllocator - Fast O(1) allocator.
Public functions
-
template<typename... Args>auto emplace(Args && ... args) -> T*
- Construct a new item using the allocator.