SeqAn3 3.3.0-rc.1
The Modern C++ library for sequence analysis.
multi_invocable.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
13#pragma once
14
15#include <functional>
16
18
19namespace seqan3::detail
20{
21
26template <typename... invocable_ts>
27struct multi_invocable : invocable_ts...
28{
30 using invocable_ts::operator()...;
31};
32
34template <typename... invocable_ts>
35multi_invocable(invocable_ts...) -> multi_invocable<invocable_ts...>;
36
37} // namespace seqan3::detail
The internal SeqAn3 namespace.
Definition: aligned_sequence_concept.hpp:29
multi_invocable(invocable_ts...) -> multi_invocable< invocable_ts... >
Deduction guides for seqan3::detail::multi_invocable.
Provides platform and dependency checks.
A type that can conveniently inherit multiple invocables and acts as a union over them.
Definition: multi_invocable.hpp:28