Engine²
Open-source game engine written in C++.
Loading...
Searching...
No Matches
std::hash< Engine::EntityId > Struct Reference

Specialization of std::hash for Engine::EntityId to allow it to be used as a key in data containers like std::unordered_map. More...

#include <EntityId.hpp>

Public Member Functions

std::size_t operator() (const Engine::EntityId &entityId) const noexcept
 Hash function for EntityId. It uses the hash of the underlying ValueType to compute the hash of the EntityId.

Detailed Description

Specialization of std::hash for Engine::EntityId to allow it to be used as a key in data containers like std::unordered_map.

Member Function Documentation

◆ operator()()

std::size_t std::hash< Engine::EntityId >::operator() ( const Engine::EntityId & entityId) const
inlinenoexcept

Hash function for EntityId. It uses the hash of the underlying ValueType to compute the hash of the EntityId.

Parameters
entityIdThe EntityId to hash.
Returns
The hash of the EntityId.
Todo
put the implementation in the cpp file

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