Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
std::hash< BlockName > Struct Reference

Hash functor specialization for BlockName. More...

#include <BlockName.h>

Public Member Functions

std::size_t operator() (const BlockName &p) const noexcept
 Computes a hash value for a BlockName.
 

Detailed Description

Hash functor specialization for BlockName.

This allows BlockName to be used as a key in std::unordered_map or std::unordered_set. The hash is built from all aliases using a Boost-style hash combine scheme in order to be sensitive to the whole alias set (but not to its order).

Definition at line 363 of file BlockName.h.

Member Function Documentation

◆ operator()()

std::size_t std::hash< BlockName >::operator() ( const BlockName p) const
inlinenoexcept

Computes a hash value for a BlockName.

Each alias contributes to the overall hash via a hash-combine-like operation. Two BlockName objects that carry the same alias set (ignoring ordering) will produce the same hash.

Parameters
pBlockName to hash.
Returns
Combined hash value.

Definition at line 384 of file BlockName.h.


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