std::hash< EntropyEngine::Core::Concurrency::NodeHandle >
std::hash< EntropyEngine::Core::Concurrency::NodeHandle >
Section titled “std::hash< EntropyEngine::Core::Concurrency::NodeHandle >”Allows NodeHandle to be used as key in unordered_map/unordered_set. More…
#include <WorkGraphTypes.h>
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| size_t | [operator()](/api/std/hash< EntropyEngine/Core/Concurrency/NodeHandle >/#function-operator())(const EntropyEngine::Core::Concurrency::NodeHandle & handle) const |
Detailed Description
Section titled “Detailed Description”struct std::hash< EntropyEngine::Core::Concurrency::NodeHandle >;Allows NodeHandle to be used as key in unordered_map/unordered_set.
This specialization enables you to use NodeHandle as a key in hash-based containers. We hash based on the internal pointer, which is unique per node.
std::unordered_map<NodeHandle, int> nodePriorities;nodePriorities[myNode] = 5; // Works thanks to this specializationPublic Functions Documentation
Section titled “Public Functions Documentation”function operator()
Section titled “function operator()”inline size_t operator()( const EntropyEngine::Core::Concurrency::NodeHandle & handle) constUpdated on 2026-01-26 at 17:14:35 -0500