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

Concept for allocators that can be reset/cleared. More...

#include <allocator_traits.hpp>

Concept definition

template<typename T>
concept helios::memory::ResettableAllocator = Allocator<T> && requires(T allocator) {
{ allocator.Reset() } -> std::same_as<void>;
}
Concept for basic allocator interface.
Concept for allocators that can be reset/cleared.

Detailed Description

Concept for allocators that can be reset/cleared.

Frame allocators and stack allocators typically support this operation.

Template Parameters
TType to check for resettable allocator requirements

Definition at line 61 of file allocator_traits.hpp.