51 template <seqan3::semi_alphabet_concept alphabet_t>
52 struct hash<alphabet_t>
61 size_t operator()(alphabet_t
const character)
const noexcept
73 template <ranges::InputRange urng_t>
90 for (
auto const character : range)
92 result *= seqan3::alphabet_size_v<alphabet_t>;
93 result += h(character);
SeqAn specific customisations in the standard namespace.
Definition: align_result.hpp:221
size_t operator()(alphabet_t const character) const noexcept
Compute the hash for a character.
Definition: hash.hpp:61
The basis for seqan3::alphabet_concept, but requires only rank interface (not char).
Adaptations of concepts from the Ranges TS.
size_t operator()(urng_t const &range) const noexcept
Compute the hash for a range of characters.
Definition: hash.hpp:85
Struct for hashing a character.
Definition: hash.hpp:52
Provides various metafunctions used by the range module.
constexpr underlying_rank_t< alphabet_type > to_rank(alphabet_type const alph) requires requires(alphabet_type alph)
Implementation of seqan3::semi_alphabet_concept::to_rank() that delegates to a member function...
Definition: member_exposure.hpp:97
auto const to_rank
A view that calls seqan3::to_rank() on each element in the input range.
Definition: to_rank.hpp:90