Crimson Engine 1.0.0
A high-performance C++20 game engine prototype showcasing a custom ECS, Vulkan renderer, and ImGui editor.
Loading...
Searching...
No Matches
std::hash< Entity > Struct Reference

Specialization of std::hash for Entity so it can be used in std::unordered_map. More...

#include <EntityHash.hpp>

Public Member Functions

std::size_t operator() (const Entity &e) const noexcept
 Hash functor operator for Entity.

Detailed Description

Specialization of std::hash for Entity so it can be used in std::unordered_map.

Member Function Documentation

◆ operator()()

std::size_t std::hash< Entity >::operator() ( const Entity & e) const
inlinenoexcept

Hash functor operator for Entity.

Parameters
eThe entity to hash.
Returns
The computed size_t hash.

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