Infinity Engine v0.6.20
C++ API Documentation
Loading...
Searching...
No Matches
std::hash< Infinity::Procedural::ComponentID > Struct Reference

Hash specialization for ComponentID to enable use in hash-based containers. More...

#include <ComponentID.hpp>

Public Member Functions

size_t operator() (Infinity::Procedural::ComponentID const &s) const noexcept
 Computes the hash value for a ComponentID.
 

Detailed Description

Hash specialization for ComponentID to enable use in hash-based containers.

Allows ComponentID to be used as a key in std::unordered_map, std::unordered_set, and similar hash-based containers.

Member Function Documentation

◆ operator()()

size_t std::hash< Infinity::Procedural::ComponentID >::operator() ( Infinity::Procedural::ComponentID const &  s) const
inlinenoexcept

Computes the hash value for a ComponentID.

Parameters
sThe ComponentID to hash.
Returns
Hash value for the ComponentID.