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

Concept for STL-compatible allocators. More...

#include <query.hpp>

Concept definition

template<typename Alloc, typename T>
concept helios::ecs::details::AllocatorFor = requires(Alloc alloc, size_t n) {
{ alloc.allocate(n) } -> std::same_as<T*>;
{ alloc.deallocate(std::declval<T*>(), n) };
requires std::same_as<typename Alloc::value_type, T>;
}
std::iter_value_t< details::QueryIterator< Components... > > value_type
Definition query.hpp:1097
Concept for STL-compatible allocators.
Definition query.hpp:112
BasicQuery< World, Allocator, Components... > Query
Type alias for query with mutable world access.
Definition query.hpp:2481

Detailed Description

Concept for STL-compatible allocators.

Template Parameters
AllocAllocator type to check
TValue type for the allocator

Definition at line 112 of file query.hpp.