libdonut  2.3.2
Application framework for cross-platform game development in C++20
Overloaded.hpp
Go to the documentation of this file.
1 #ifndef DONUT_OVERLOADED_HPP
2 #define DONUT_OVERLOADED_HPP
3 
4 namespace donut {
5 
12 template <typename... Functors>
13 struct Overloaded : Functors... {
14  using Functors::operator()...;
15 };
16 
17 template <typename... Functors>
18 Overloaded(Functors...) -> Overloaded<Functors...>;
19 
20 } // namespace donut
21 
22 #endif
Definition: Application.hpp:9
Overloaded(Functors...) -> Overloaded< Functors... >
Visitor type for combining callable objects, such as lambdas, into an overload set.
Definition: Overloaded.hpp:13