BioC++ core-0.7.0
The Modern C++ libraries for Bioinformatics.
 
Loading...
Searching...
No Matches
std::hash< alphabet_t > Struct Template Reference

Struct for hashing a character. More...

#include <bio/alphabet/hash.hpp>

Public Member Functions

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

Detailed Description

template<typename alphabet_t>
requires bio::alphabet::semialphabet<alphabet_t>
struct std::hash< alphabet_t >

Struct for hashing a character.

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

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 bio::alphabet::semialphabet.
Returns
The rank of the character.
See also
bio::alphabet::to_rank.

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