mirror-chatterino2/src/util/Overloaded.hpp

14 lines
224 B
C++
Raw Normal View History

2019-09-14 22:58:53 +02:00
#pragma once
namespace chatterino {
template <class... Ts>
struct Overloaded : Ts... {
using Ts::operator()...;
};
template <class... Ts>
Overloaded(Ts...)->Overloaded<Ts...>;
} // namespace chatterino