VLink 2.0.0
A high-performance communication middleware
Loading...
Searching...
No Matches
std::hash< vlink::Uint128 > Struct Reference

std::hash specialisation for vlink::Uint128. More...

#include <uint128.h>

Collaboration diagram for std::hash< vlink::Uint128 >:

Public Member Functions

VLINK_EXPORT size_t operator() (const vlink::Uint128 &value) const noexcept
 Computes the hash of value.

Detailed Description

std::hash specialisation for vlink::Uint128.

Enables vlink::Uint128 (and the vlink::uint128_t alias) to be used as a key in std::unordered_map, std::unordered_set, and similar hash-based containers.

The hash function combines the high and low 64-bit words to produce a size_t result.

Member Function Documentation

◆ operator()()

VLINK_EXPORT size_t std::hash< vlink::Uint128 >::operator() ( const vlink::Uint128 & value) const
noexcept

Computes the hash of value.

Parameters
valueThe 128-bit value to hash.
Returns
Hash value derived from both the high and low 64-bit words.

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