22 void QueryBudget(
size_t& used,
size_t& budget)
const override;
General purpose heap allocator.
Definition AllocatorHeap.hpp:14
pointer Allocate(size_type size, size_t alignment) override
Definition AllocatorHeap.cpp:39
pointer Reallocate(pointer ptr, size_type new_size, size_t alignment) override
Definition AllocatorHeap.cpp:52
size_t QueryHeapUsage() const override
Definition AllocatorHeap.cpp:93
void QueryBudget(size_t &used, size_t &budget) const override
Definition AllocatorHeap.cpp:79
Atomic< size_t > mHeapUsage
Definition AllocatorHeap.hpp:25
void Deallocate(pointer ptr) override
Definition AllocatorHeap.cpp:97
General Purpose Allocator (GPA) interface.
Definition Allocator.hpp:24
Lock-free atomic primitives and implementations of data structures.
Definition Allocator.hpp:5
std::size_t size_type
Definition Allocator.hpp:6
std::atomic< T > Atomic
Alias of std::atomic<T>.
Definition Atomic.hpp:26
void * pointer
Definition Allocator.hpp:7
T * Construct(Allocator *resource, Args &&...args)
Convenience placement new with object of type T using a Foundation::Core::Allocator.
Definition Allocator.hpp:153