Simple-Utility
v2.3.1
Loading...
Searching...
No Matches
Overloaded.hpp
Go to the documentation of this file.
1
// Copyright Dominic Koepke 2019 - 2023.
2
// Distributed under the Boost Software License, Version 1.0.
3
// (See accompanying file LICENSE_1_0.txt or copy at
4
// https://www.boost.org/LICENSE_1_0.txt)
5
6
#ifndef SL_UTILITY_FUNCTIONAL_OVERLOADED_HPP
7
#define SL_UTILITY_FUNCTIONAL_OVERLOADED_HPP
8
9
namespace
sl::functional
10
{
23
template
<
class
... Fns>
24
struct
Overloaded
25
:
public
Fns...
26
{
27
using
Fns::operator()...;
28
};
29
34
template
<
class
... Fns>
35
Overloaded
(Fns...) ->
Overloaded
<Fns...>;
36
40
}
41
42
#endif
sl::functional
Definition:
Arithmetic.hpp:13
sl::functional::Overloaded
Helper invocable type which can hold an arbitrary amount of functions, from which the best match will...
Definition:
Overloaded.hpp:26
Simple-Utility
functional
Overloaded.hpp
Generated by
1.9.6