Clementine
Public Types | Static Public Attributes | List of all members
entt::identifier< Types > Class Template Reference

Types identifiers. More...

#include <entt.hpp>

Public Types

using identifier_type = id_type
 Unsigned integer type.
 

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.
 

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.

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