aocpp/lib/include/Overload.hpp
Eric Mertens 8d65f74d9f Run
2022-11-04 11:36:30 -07:00

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