mirror of
https://github.com/XRPLF/clio.git
synced 2026-09-30 08:58:13 +00:00
24 lines
368 B
C++
24 lines
368 B
C++
#pragma once
|
|
|
|
namespace util {
|
|
|
|
/**
|
|
* @brief Overload set for lambdas
|
|
*
|
|
* @tparam Ts Types of lambdas
|
|
*/
|
|
template <typename... Ts>
|
|
struct OverloadSet : Ts... {
|
|
using Ts::operator()...;
|
|
};
|
|
|
|
/**
|
|
* @brief Deduction guide for OverloadSet
|
|
*
|
|
* @tparam Ts Types of lambdas
|
|
*/
|
|
template <class... Ts>
|
|
OverloadSet(Ts...) -> OverloadSet<Ts...>;
|
|
|
|
} // namespace util
|