qb  2.0.0.0
C++17 Actor Framework
qb Issue Watch Star Fork Follow @isndev
Loading...
Searching...
No Matches
qb::io::transport::udp::identity::hasher Struct Reference

Hash function for udp::identity objects. More...

#include <udp.h>

Public Member Functions

std::size_t operator() (const identity &id) const noexcept
 Hash operator.

Detailed Description

Hash function for udp::identity objects.

This struct provides a hashing operation suitable for using udp::identity objects as keys in standard C++ unordered containers. It hashes the raw memory representation of the underlying endpoint data.

Member Function Documentation

◆ operator()()

std::size_t qb::io::transport::udp::identity::hasher::operator() ( const identity & id) const
inlinenoexcept

Hash operator.

Parameters
idThe udp::identity to hash.
Returns
std::size_t hash value.