This commit is contained in:
Eric Mertens
2022-11-18 14:50:42 -08:00
parent 4d4dfb4424
commit 8f772d85b2
5 changed files with 239 additions and 3 deletions

View 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_