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

Hash functor specialization for BinnedObservableId. More...

#include <BinnedObservableId.h>

Public Member Functions

std::size_t operator() (BinnedObservableId const &id) const noexcept
 Computes the hash of a binned observable identifier.
 

Detailed Description

Hash functor specialization for BinnedObservableId.

This specialization allows BinnedObservableId to be used as a key in std::unordered_map or std::unordered_set. The hash combines the hash of the underlying observable identifier with the bitwise representation of the normalized bin boundaries.

Definition at line 484 of file BinnedObservableId.h.

Member Function Documentation

◆ operator()()

std::size_t std::hash< BinnedObservableId >::operator() ( BinnedObservableId const &  id) const
inlinenoexcept

Computes the hash of a binned observable identifier.

Positive and negative zero are normalized before hashing the bin boundaries, consistently with equality comparison.

Parameters
idBinned observable identifier to hash.
Returns
Hash value for id.

Definition at line 494 of file BinnedObservableId.h.


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