tetl 0.1.0
Embedded Template Library
Loading...
Searching...
No Matches
overload.hpp
Go to the documentation of this file.
1
2// SPDX-License-Identifier: BSL-1.0
3
4#ifndef TETL_VARIANT_OVERLOAD_HPP
5#define TETL_VARIANT_OVERLOAD_HPP
6
7namespace etl {
8
9template <typename... Functor>
10struct overload : Functor... {
11 using Functor::operator()...;
12};
13
14template <typename... Functor>
15overload(Functor...) -> overload<Functor...>;
16
17} // namespace etl
18
19#endif // TETL_VARIANT_OVERLOAD_HPP
Definition adjacent_find.hpp:8
overload(Functor...) -> overload< Functor... >
Definition overload.hpp:10