psl::ecs::details::component_key_t class

Container type for unique component types. These should be construced using the component_key_t::generate helper function.

Internally contains the component type's stringified name, and the hash. Both are generated at compile time using the psl::ecs::details::component_key_t::generate helper function.

static member functions

generate<…>
Generates a component_key_t based on the given type in a cross platform safe manner.
noexcept -> component_key_t public constexpr static

Function documentation

template<typename T>
static auto psl::ecs::details::component_key_t::generate() noexcept -> component_key_t constexpr

Brief

Generates a component_key_t based on the given type in a cross platform safe manner.

Details