Helios Engine 0.1.0
A modular ECS based data-oriented C++23 game engine
 
Loading...
Searching...
No Matches
helios::memory::Allocator Concept Reference

Concept for basic allocator interface. More...

#include <allocator_traits.hpp>

Concept definition

template<typename T>
concept helios::memory::Allocator = requires(T allocator, size_t size, size_t alignment) {
{ allocator.Allocate(size, alignment) } -> std::same_as<AllocationResult>;
}
Concept for basic allocator interface.

Detailed Description

Concept for basic allocator interface.

Allocators must provide allocate and deallocate methods. Deallocate signature may vary between allocators (e.g., frame allocators don't need parameters).

Template Parameters
TType to check for allocator requirements

Definition at line 50 of file allocator_traits.hpp.