BioC++ core-0.7.0
The Modern C++ libraries for Bioinformatics.
 
Loading...
Searching...
No Matches
overloaded.hpp
Go to the documentation of this file.
1// -----------------------------------------------------------------------------------------------------
2// Copyright (c) 2022 deCODE Genetics
3// Copyright (c) 2006-2022, Knut Reinert & Freie Universität Berlin
4// Copyright (c) 2016-2022, Knut Reinert & MPI für molekulare Genetik
5// This file may be used, modified and/or redistributed under the terms of the 3-clause BSD-License
6// shipped with this file and also available at: https://github.com/biocpp/biocpp-core/blob/main/LICENSE.md
7// -----------------------------------------------------------------------------------------------------
8
14#pragma once
15
16#include <bio/core.hpp>
17
18namespace bio::meta
19{
20
35template <typename... functors>
36struct overloaded : functors...
37{
38 using functors::operator()...;
39};
40
43template <typename... functors>
44overloaded(functors...) -> overloaded<functors...>;
46
47} // namespace bio::meta
Provides platform and dependency checks.
overloaded(functors...) -> overloaded< functors... >
Deduction guide for bio::meta::overloaded.
The Meta module's namespace.
Wrapper to create an overload set of multiple functors.
Definition: overloaded.hpp:37