Skip to main content

hash Struct Template

Hash specialization for SpawnRuleId. More...

Declaration

struct std::hash<helios::engine::core::data::SpawnRuleId> { ... }

Public Operators Index

std::size_toperator() (const helios::engine::core::data::SpawnRuleId &id) const noexcept

Computes the hash value for a SpawnRuleId. More...

Description

Hash specialization for SpawnRuleId.

Enables use as a key in std::unordered_map and std::unordered_set.

Definition at line 104 of file SpawnRuleId.ixx.

Public Operators

operator()()

std::size_t std::hash< helios::engine::core::data::SpawnRuleId >::operator() (const helios::engine::core::data::SpawnRuleId & id)
inline noexcept

Computes the hash value for a SpawnRuleId.

Parameters
id

The SpawnRuleId to hash.

Returns

The hash value based on the underlying numeric identifier.

Definition at line 113 of file SpawnRuleId.ixx.

113 std::size_t operator()(const helios::engine::core::data::SpawnRuleId& id) const noexcept {
114 return id.value();
115 }

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.