SeqAn3  3.0.1
The Modern C++ library for sequence analysis.
concept.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 <type_traits>
16 
17 #include <seqan3/core/platform.hpp>
18 
19 namespace seqan3
20 {
21 
28 template <typename t>
30 SEQAN3_CONCEPT transformation_trait = requires { typename t::type; };
32 
39 template <typename t>
41 SEQAN3_CONCEPT unary_type_trait = std::is_base_of_v<std::integral_constant<typename t::value_type, t::value>, t>;
43 
44 } // namespace seqan3
seqan3
The main SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:36
transformation_trait
Concept for a transformation trait.
platform.hpp
Provides platform and dependency checks.
unary_type_trait
Concept for a unary traits type.