EnTT  3.8.1
component.hpp
1 #ifndef ENTT_ENTITY_COMPONENT_HPP
2 #define ENTT_ENTITY_COMPONENT_HPP
3 
4 
5 #include <type_traits>
6 #include "../config/config.h"
7 
8 
9 namespace entt {
10 
11 
15  using in_place_delete = std::false_type;
17  using ignore_if_empty = ENTT_IGNORE_IF_EMPTY;
18 };
19 
20 
25 template<typename Type, typename = void>
27  static_assert(std::is_same_v<std::decay_t<Type>, Type>, "Unsupported type");
28 };
29 
30 
31 }
32 
33 
34 #endif
EnTT default namespace.
Definition: algorithm.hpp:13
Commonly used default traits for all types.
Definition: component.hpp:13
std::true_type ignore_if_empty
Empty type optimization, default is ENTT_IGNORE_IF_EMPTY.
Definition: component.hpp:17
std::false_type in_place_delete
Pointer stability, default is std::false_type.
Definition: component.hpp:15
Common way to access various properties of components.
Definition: component.hpp:26