mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +00:00
17 lines
342 B
C++
17 lines
342 B
C++
#pragma once
|
|
|
|
#include <tuple>
|
|
#include <type_traits>
|
|
|
|
|
|
template <typename T>
|
|
struct function_traits;
|
|
|
|
template <typename ReturnType, typename... Args>
|
|
struct function_traits<ReturnType(Args...)>
|
|
{
|
|
using result = ReturnType;
|
|
using arguments = std::tuple<Args...>;
|
|
using arguments_decay = std::tuple<typename std::decay<Args>::type...>;
|
|
};
|