qb  2.0.0.0
C++17 Actor Framework
qb Issue Watch Star Fork Follow @isndev
Loading...
Searching...
No Matches
std::hash< qb::ActorId > Struct Reference

Specialization of std::hash for qb::ActorId. More...

#include <ActorId.h>

Public Member Functions

std::size_t operator() (qb::ActorId const &val) const noexcept
 Hash function operator for ActorId.

Detailed Description

Specialization of std::hash for qb::ActorId.

This hash specialization allows ActorId objects to be used efficiently in unordered associative containers like std::unordered_set and std::unordered_map. The hash function simply uses the numeric representation of the ActorId.

Member Function Documentation

◆ operator()()

std::size_t std::hash< qb::ActorId >::operator() ( qb::ActorId const & val) const
inlinenoexcept

Hash function operator for ActorId.

Parameters
valThe ActorId to hash
Returns
Hash value generated from the numeric representation of the ActorId