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
9namespace sl::functional
10{
23 template <class... Fns>
25 : public Fns...
26 {
27 using Fns::operator()...;
28 };
29
34 template <class... Fns>
35 Overloaded(Fns...) -> Overloaded<Fns...>;
36
40}
41
42#endif
Definition: Arithmetic.hpp:13
Helper invocable type which can hold an arbitrary amount of functions, from which the best match will...
Definition: Overloaded.hpp:26