anotherim-desktop/plugins/windows-notification/api/include/overload.hpp

11 lines
213 B
C++
Raw Normal View History

#ifndef OVERLOAD_HPP
#define OVERLOAD_HPP
template<typename... Callable>
struct overload : Callable...
{
2021-03-19 21:43:00 +00:00
overload(Callable &&... c) : Callable{std::move(c)}... {}
using Callable::operator()...;
};
#endif