SeqAn3  3.0.3
The Modern C++ library for sequence analysis.
pack.hpp
Go to the documentation of this file.
1 // -----------------------------------------------------------------------------------------------------
2 // Copyright (c) 2006-2021, Knut Reinert & Freie Universität Berlin
3 // Copyright (c) 2016-2021, 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 
15 #pragma once
16 
17 #include <seqan3/core/platform.hpp>
19 
20 SEQAN3_DEPRECATED_HEADER("This header is deprecated and will be removed in SeqAn-3.1. Please use seqan3::pack_traits::contains in <seqan3/core/type_list/traits.hpp> instead.")
21 
22 namespace seqan3::detail
23 {
24 
27 
33 template <typename target_t, typename ...pack>
34 struct SEQAN3_DEPRECATED_310 type_in_pack : std::conditional_t<seqan3::pack_traits::contains<target_t, pack...>,
35  std::true_type,
36  std::false_type> {};
37 
42 template <typename target_t, typename ...pack>
43 SEQAN3_DEPRECATED_310 inline bool constexpr type_in_pack_v = seqan3::pack_traits::contains<target_t, pack...>;
44 
46 
47 } // namespace seqan3::detail
[DEPRECATED] Provides traits for seqan3::type_list.
constexpr bool contains
Whether a type occurs in a pack or not.
Definition: traits.hpp:228
The main SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29
Provides platform and dependency checks.
#define SEQAN3_DEPRECATED_310
Deprecation message for SeqAn 3.1.0 release.
Definition: platform.hpp:203
#define SEQAN3_DEPRECATED_HEADER(message)
Deprecation message for deprecated header.
Definition: platform.hpp:213