8 lines
195 B
C++
8 lines
195 B
C++
|
#ifndef OVERLOAD_HPP_
|
||
|
#define OVERLOAD_HPP_
|
||
|
|
||
|
template <class... Ts> struct overloaded : Ts... { using Ts::operator()...; };
|
||
|
template <class... Ts> overloaded(Ts...) -> overloaded<Ts...>;
|
||
|
|
||
|
#endif
|