1 #ifndef ENTT_CORE_IDENT_HPP
2 #define ENTT_CORE_IDENT_HPP
7 #include "../config/config.h"
9 #include "type_traits.hpp"
40 template<
typename... Types>
42 template<
typename Type, std::size_t... Index>
43 [[nodiscard]]
static constexpr
id_type get(std::index_sequence<Index...>) ENTT_NOEXCEPT {
44 static_assert((std::is_same_v<Type, Types> || ...),
"Invalid type");
53 template<
typename Type>
id_type identifier_type
Unsigned integer type.
static constexpr identifier_type type
Statically generated unique identifier for the given type.
std::uint32_t id_type
Alias declaration for type identifiers.
typename type_list_element< Index, List >::type type_list_element_t
Helper type.
A class to use to push around lists of types, nothing more.