SeqAn3 3.2.0
The Modern C++ library for sequence analysis.
max_error_common.hpp
Go to the documentation of this file.
1// -----------------------------------------------------------------------------------------------------
2// Copyright (c) 2006-2022, Knut Reinert & Freie Universität Berlin
3// Copyright (c) 2016-2022, 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
14#pragma once
15
16#include <concepts>
17
20
21namespace seqan3::search_cfg
22{
23
30 detail::
31 strong_type<uint8_t, error_count, detail::strong_type_skill::convert | detail::strong_type_skill::comparable>
32{
34 using detail::strong_type<uint8_t,
36 detail::strong_type_skill::convert | detail::strong_type_skill::comparable>::strong_type;
37};
38
44struct error_rate :
45 detail::strong_type<double, error_rate, detail::strong_type_skill::convert | detail::strong_type_skill::comparable>
46{
48 using detail::strong_type<double,
50 detail::strong_type_skill::convert | detail::strong_type_skill::comparable>::strong_type;
51};
52
53} // namespace seqan3::search_cfg
A special sub namespace for the search configurations.
Provides basic data structure for strong types.
A strong type of underlying type uint8_t that represents the number of errors.
Definition: max_error_common.hpp:32
A strong type of underlying type double that represents the rate of errors.
Definition: max_error_common.hpp:46
Provides concepts that do not have equivalents in C++20.