SeqAn3 3.1.0
The Modern C++ library for sequence analysis.
std::hash< alphabet_t > Struct Template Reference

Struct for hashing a character. More...

#include <seqan3/alphabet/hash.hpp>

Public Member Functions

size_t operator() (alphabet_t const character) const noexcept
 Compute the hash for a character. More...
 

Detailed Description

template<typename alphabet_t>
struct std::hash< alphabet_t >

Struct for hashing a character.

Template Parameters
alphabet_tThe type of character to hash; must model seqan3::semialphabet.

This entity is stable. Since version 3.1.

Member Function Documentation

◆ operator()()

template<typename alphabet_t >
size_t std::hash< alphabet_t >::operator() ( alphabet_t const  character) const
inlinenoexcept

Compute the hash for a character.

Parameters
[in]characterThe character to process; must model seqan3::semialphabet.
Returns
The rank of the character.
See also
seqan3::to_rank.

This entity is stable. Since version 3.1.


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