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