EnTT
3.5.0
src
entt
entity
pool.hpp
1
#ifndef ENTT_ENTITY_POOL_HPP
2
#define ENTT_ENTITY_POOL_HPP
3
4
5
#include <type_traits>
6
#include "storage.hpp"
7
8
9
namespace
entt
{
10
11
26
template
<
typename
Entity,
typename
Type,
typename
=
void
>
27
struct
pool
{
29
using
type
=
storage<Entity, Type>
;
30
};
31
32
34
template
<
typename
Entity,
typename
Type>
35
struct
pool
<Entity, const Type> {
37
using
type
= std::add_const_t<typename pool<Entity, std::remove_const_t<Type>>
::type
>;
38
};
39
40
46
template
<
typename
Entity,
typename
Type>
47
using
pool_t
=
typename
pool<Entity, Type>::type
;
48
49
50
}
51
52
53
#endif
entt::pool< Entity, const Type >::type
std::add_const_t< typename pool< Entity, std::remove_const_t< Type > >::type > type
Resulting type after component-to-pool conversion.
Definition:
pool.hpp:37
entt::pool
Applies component-to-pool conversion and defines the resulting type as the member typedef type.
Definition:
pool.hpp:27
entt
EnTT default namespace.
Definition:
algorithm.hpp:13
entt::storage
Basic storage implementation.
Definition:
storage.hpp:49
entt::pool_t
typename pool< Entity, Type >::type pool_t
Alias declaration to use to make component-to-pool conversions.
Definition:
pool.hpp:47
Generated by
1.8.18