Helios Engine 0.1.0
A modular ECS based data-oriented C++23 game engine
 
Loading...
Searching...
No Matches
std::hash< helios::ecs::Entity > Struct Reference

Standard hash specialization for Entity. More...

#include <entity.hpp>

Public Member Functions

constexpr size_t operator() (const helios::ecs::Entity &entity) const noexcept
 

Detailed Description

Standard hash specialization for Entity.

Enables use of Entity as key in standard hash-based containers.

Definition at line 111 of file entity.hpp.

Member Function Documentation

◆ operator()()

constexpr size_t std::hash< helios::ecs::Entity >::operator() ( const helios::ecs::Entity entity) const
inlineconstexprnoexcept

Definition at line 112 of file entity.hpp.

112{ return entity.Hash(); }
constexpr size_t Hash() const noexcept
Generates a hash value for this entity.
Definition entity.hpp:96