SeqAn3  3.0.3
The Modern C++ library for sequence analysis.
is_class_template_declarable.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 
13 #pragma once
14 
15 #include <seqan3/std/type_traits>
16 
17 #include <seqan3/core/platform.hpp>
18 
19 namespace seqan3::detail
20 {
21 
44 template <template <typename ...> typename query_t, typename ...args_t>
45 struct is_class_template_declarable_with :
47  public std::false_type
49 {};
50 
52 template <template <typename ...> typename query_t, typename ...args_t>
53 requires requires { typename std::type_identity<query_t<args_t...>>::type; }
54 struct is_class_template_declarable_with<query_t, args_t...> : public std::true_type
55 {};
57 
63 template <template <typename ...> typename query_t, typename ...args_t>
64 inline constexpr bool is_class_template_declarable_with_v =
65  is_class_template_declarable_with<query_t, args_t...>::value;
66 
68 
69 } // namespace seqan3::detail
Provides platform and dependency checks.
Provides C++20 additions to the type_traits header.