OpenLexocad  27.1
entt::identifier< Types > Class Template Reference

Types identifiers. More...

#include <entt.hpp>

Public Types

using identifier_type = ENTT_ID_TYPE
 Unsigned integer type. More...
 

Static Public Attributes

template<typename Type >
static constexpr identifier_type type = get<std::decay_t<Type>>(std::index_sequence_for<Types...>{})
 Statically generated unique identifier for the given type. More...
 

Detailed Description

template<typename... Types>
class entt::identifier< Types >

Types identifiers.

Variable template used to generate identifiers at compile-time for the given types. Use the get member function to know what's the identifier associated to the specific type.

Note
Identifiers are constant expression and can be used in any context where such an expression is required. As an example:
switch(a_type_identifier) {
case id::type<a_type>:
// ...
break;
case id::type<another_type>:
// ...
break;
default:
// ...
}
Template Parameters
TypesList of types for which to generate identifiers.

Member Typedef Documentation

◆ identifier_type

template<typename... Types>
using entt::identifier< Types >::identifier_type = ENTT_ID_TYPE

Unsigned integer type.

Member Data Documentation

◆ type

template<typename... Types>
template<typename Type >
constexpr identifier_type entt::identifier< Types >::type = get<std::decay_t<Type>>(std::index_sequence_for<Types...>{})
static

Statically generated unique identifier for the given type.


The documentation for this class was generated from the following file: