holoscan::ServiceKeyHash
holoscan::ServiceKeyHash
Hash function for ServiceKey to enable use in hash-based containers.
This functor provides a hash function for ServiceKey objects, allowing them to be used as keys in std::unordered_map and similar containers.
Methods
operator()
Compute hash value for a ServiceKey.
The hash is computed by XORing the hashes of the type_index and string id.
Returns: Hash value for the key.
Parameters
key
The ServiceKey to hash.