aocpp/lib/include/Overload.hpp

8 lines
195 B
C++
Raw Normal View History

2022-11-04 11:36:30 -07:00
#ifndef OVERLOAD_HPP_
#define OVERLOAD_HPP_
template <class... Ts> struct overloaded : Ts... { using Ts::operator()...; };
template <class... Ts> overloaded(Ts...) -> overloaded<Ts...>;
#endif