Foundation
Loading...
Searching...
No Matches
AllocatorHeap.hpp
Go to the documentation of this file.
1#pragma once
2#include "Allocator.hpp"
3
4namespace Foundation::Core {
13 class AllocatorHeap : public Allocator {
14 public:
15 pointer Allocate(size_type size, size_t alignment) override;
16 void Deallocate(pointer ptr) override;
21 void QueryBudget(size_t& used, size_t& budget) const override;
22 };
23}
General purpose heap allocator.
Definition AllocatorHeap.hpp:13
pointer Allocate(size_type size, size_t alignment) override
Definition AllocatorHeap.cpp:16
pointer Reallocate(pointer ptr, size_type new_size, size_t alignment) override
Definition AllocatorHeap.cpp:23
void QueryBudget(size_t &used, size_t &budget) const override
Definition AllocatorHeap.cpp:30
void Deallocate(pointer ptr) override
Definition AllocatorHeap.cpp:40
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
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:149