SeqAn3
3.0.2
The Modern C++ library for sequence analysis.
▼
SeqAn3
Welcome
►
Setup
►
Tutorial
►
How-To
Cookbook
►
About
►
API Reference (Modules)
▼
API Reference (details)
►
Namespace List
►
Class List
▼
File List
►
File List
►
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
hash.hpp
Go to the documentation of this file.
1
// -----------------------------------------------------------------------------------------------------
2
// Copyright (c) 2006-2020, Knut Reinert & Freie Universität Berlin
3
// Copyright (c) 2016-2020, Knut Reinert & MPI für molekulare Genetik
4
// This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
5
// shipped with this file and also available at: https://github.com/seqan/seqan3/blob/master/LICENSE.md
6
// -----------------------------------------------------------------------------------------------------
7
13
#pragma once
14
15
#include <
seqan3/alphabet/concept.hpp
>
16
17
namespace
std
18
{
23
template
<
typename
alphabet_t>
25
requires
seqan3::semialphabet<alphabet_t>
27
struct
hash
<alphabet_t>
28
{
35
size_t
operator()
(alphabet_t
const
character)
const
noexcept
36
{
37
return
seqan3::to_rank
(character);
38
}
39
};
40
41
}
// namespace std
seqan3::to_rank
constexpr auto to_rank
Return the rank representation of a (semi-)alphabet object.
Definition:
concept.hpp:143
std::hash< alphabet_t >::operator()
size_t operator()(alphabet_t const character) const noexcept
Compute the hash for a character.
Definition:
hash.hpp:35
std
SeqAn specific customisations in the standard namespace.
semialphabet
The basis for seqan3::alphabet, but requires only rank interface (not char).
concept.hpp
Core alphabet concept and free function/type trait wrappers.
std::hash
Version:
main_user
main_dev
3.4.0
3.3.0
3.2.0
3.1.0
3.0.3
3.0.2
3.0.1
3.0.0
seqan3
alphabet
hash.hpp
Generated on Thu Dec 3 2020 18:58:18 for SeqAn3 by
1.8.20