SeqAn3  3.0.1
The Modern C++ library for sequence analysis.
function.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/core/platform.hpp>
16 
17 // ----------------------------------------------------------------------------
18 // is_constexpr
19 // ----------------------------------------------------------------------------
20 
25 #define SEQAN3_IS_CONSTEXPR(...) std::integral_constant<bool, __builtin_constant_p((__VA_ARGS__, 0))>::value
26 
27 // ----------------------------------------------------------------------------
28 // multi_invocable
29 // ----------------------------------------------------------------------------
30 
31 namespace seqan3::detail
32 {
33 
38 template <typename ...invocable_ts>
39 struct multi_invocable : invocable_ts...
40 {
42  using invocable_ts::operator()...;
43 };
44 
46 template <typename ...invocable_ts>
47 multi_invocable(invocable_ts...) -> multi_invocable<invocable_ts...>;
48 
49 } // namespace seqan3::detail
platform.hpp
Provides platform and dependency checks.