Clementine
Public Types | Static Public Attributes | List of all members
entt::entt_traits< std::uint32_t > Struct Template Reference

Entity traits for a 32 bits entity identifier. More...

#include <entt.hpp>

Public Types

using entity_type = std::uint32_t
 Underlying entity type.
 
using version_type = std::uint16_t
 Underlying version type.
 
using difference_type = std::int64_t
 Difference type.
 

Static Public Attributes

static constexpr entity_type entity_mask = 0xFFFFF
 Mask to use to get the entity number out of an identifier.
 
static constexpr entity_type version_mask = 0xFFF
 Mask to use to get the version out of an identifier.
 
static constexpr std::size_t entity_shift = 20u
 Extent of the entity number within an identifier.
 

Detailed Description

template<>
struct entt::entt_traits< std::uint32_t >

Entity traits for a 32 bits entity identifier.

A 32 bits entity identifier guarantees:


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