Loading...
Searching...
No Matches
hash.hpp
Go to the documentation of this file.
// SPDX-FileCopyrightText: 2006-2025 Knut Reinert & Freie Universität Berlin
// SPDX-FileCopyrightText: 2016-2025 Knut Reinert & MPI für molekulare Genetik
// SPDX-License-Identifier: BSD-3-Clause
#pragma once
#include <seqan3/alphabet/adaptation/all.hpp> // https://github.com/seqan/seqan3/issues/3015
namespace std
{
template <typename alphabet_t>
requires seqan3::semialphabet<alphabet_t>
struct hash<alphabet_t>
{
size_t operator()(alphabet_t const character) const noexcept
{
return seqan3::to_rank(character);
}
};
} // 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