Skip to main content

hash Struct Template

std::hash specialization for ComponentTypeId. More...

Declaration

template <typename THandle> struct std::hash<helios::core::ecs::ComponentTypeId< THandle >> { ... }

Public Operators Index

template <typename THandle>
std::size_toperator() (const helios::core::ecs::ComponentTypeId< THandle > &id) const noexcept

Description

std::hash specialization for ComponentTypeId.

Enables use of ComponentTypeId as a key in unordered containers.

Definition at line 118 of file ComponentTypeId.ixx.

Public Operators

operator()()

template <typename THandle>
std::size_t std::hash< helios::core::ecs::ComponentTypeId< THandle > >::operator() (const helios::core::ecs::ComponentTypeId< THandle > & id)
inline noexcept

Definition at line 119 of file ComponentTypeId.ixx.

119 std::size_t operator()(const helios::core::ecs::ComponentTypeId<THandle>& id) const noexcept {
120 return id.value();
121 }

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.