modeco80
bdc55f5483
A ironically more-free license. Also no more foot fungus (or other various shitty things a certain RMS has done.)
24 lines
No EOL
458 B
C++
24 lines
No EOL
458 B
C++
//
|
|
// EuropaTools
|
|
//
|
|
// (C) 2021-2025 modeco80 <lily.modeco80@protonmail.ch>
|
|
//
|
|
// SPDX-License-Identifier: MIT
|
|
//
|
|
|
|
#ifndef EUROPA_UTIL_OVERLOADED_HPP
|
|
#define EUROPA_UTIL_OVERLOADED_HPP
|
|
|
|
namespace europa {
|
|
template <class... Ts>
|
|
struct overloaded : Ts... {
|
|
using Ts::operator()...;
|
|
};
|
|
|
|
// Suppposedly this isn't needed but the CTAD is required in this case
|
|
|
|
template <class... Ts>
|
|
overloaded(Ts...) -> overloaded<Ts...>;
|
|
} // namespace europa
|
|
|
|
#endif |