Skip to main content

hash Struct Template

Hash specialization for SpawnProfileId. More...

Declaration

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

Public Operators Index

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

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

Description

Hash specialization for SpawnProfileId.

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

Definition at line 102 of file SpawnProfileId.ixx.

Public Operators

operator()()

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

Computes the hash value for a SpawnProfileId.

Parameters
id

The SpawnProfileId to hash.

Returns

The hash value based on the underlying numeric identifier.

Definition at line 111 of file SpawnProfileId.ixx.

111 std::size_t operator()(const helios::engine::core::data::SpawnProfileId& id) const noexcept {
112 return id.value();
113 }

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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.