OpenMS
Loading...
Searching...
No Matches
hash< OpenMS::PeptideHit::PeakAnnotation > Struct Reference

Hash function for OpenMS::PeptideHit::PeakAnnotation. More...

#include <OpenMS/METADATA/PeptideHit.h>

Public Member Functions

std::size_t operator() (const OpenMS::PeptideHit::PeakAnnotation &pa) const noexcept
 

Detailed Description

Hash function for OpenMS::PeptideHit::PeakAnnotation.

Computes a hash by combining annotation (via fnv1a_hash_string), charge, mz, and intensity fields using hash_combine.

Note
Hash is consistent with operator==.

Member Function Documentation

◆ operator()()

std::size_t operator() ( const OpenMS::PeptideHit::PeakAnnotation pa) const
inlinenoexcept