SeqAn3
3.4.0
The Modern C++ library for sequence analysis.
Toggle main menu visibility
Loading...
Searching...
No Matches
hash.hpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2006-2025 Knut Reinert & Freie Universität Berlin
2
// SPDX-FileCopyrightText: 2016-2025 Knut Reinert & MPI für molekulare Genetik
3
// SPDX-License-Identifier: BSD-3-Clause
4
9
10
#pragma once
11
12
#include <
seqan3/alphabet/adaptation/all.hpp
>
// https://github.com/seqan/seqan3/issues/3015
13
14
namespace
std
15
{
22
template
<
typename
alphabet_t>
23
requires
seqan3::semialphabet<alphabet_t>
24
struct
hash
<alphabet_t>
25
{
34
size_t
operator()
(alphabet_t
const
character)
const
noexcept
35
{
36
return
seqan3::to_rank
(character);
37
}
38
};
39
40
}
// namespace std
all.hpp
Meta-header for the Alphabet / Adaptation submodule .
seqan3::to_rank
constexpr auto to_rank
Return the rank representation of a (semi-)alphabet object.
Definition
alphabet/concept.hpp:152
std::hash< alphabet_t >::hash
T hash(T... args)
std
SeqAn specific customisations in the standard namespace.
std::hash< alphabet_t >::operator()
size_t operator()(alphabet_t const character) const noexcept
Compute the hash for a character.
Definition
hash.hpp:34
Hide me
Version:
seqan3
alphabet
hash.hpp
Generated on
for SeqAn3 by
1.17.0