ClickHouse/base/ext/function_traits.h

17 lines
351 B
C++
Raw Normal View History

2015-10-05 00:33:43 +00:00
#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...>;
2015-10-05 00:33:43 +00:00
};