201718
This commit is contained in:
9
lib/include/aocpp/Overloaded.hpp
Normal file
9
lib/include/aocpp/Overloaded.hpp
Normal file
@@ -0,0 +1,9 @@
|
||||
#ifndef AOCPP_OVERLOADED_HPP_
|
||||
#define AOCPP_OVERLOADED_HPP_
|
||||
|
||||
// helper type for the visitor #4
|
||||
template<class... Ts> struct overloaded : Ts... { using Ts::operator()...; };
|
||||
// explicit deduction guide (not needed as of C++20)
|
||||
template<class... Ts> overloaded(Ts...) -> overloaded<Ts...>;
|
||||
|
||||
#endif // AOCPP_OVERLOADED_HPP_
|
Reference in New Issue
Block a user