Tensor Comprehensions
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
function_traits.h File Reference
#include <functional>
#include <type_traits>
Include dependency graph for function_traits.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tc::function_traits< T >
 
struct  tc::function_traits< R(ClassType::*)(Args...) const >
 
struct  tc::function_traits< R(*)(Args...)>
 

Namespaces

 tc
 

Macros

#define FUNCTION_TRAITS_STRUCT_BODY
 

Macro Definition Documentation

#define FUNCTION_TRAITS_STRUCT_BODY
Value:
typedef R result_type; \
\
template <size_t i> \
struct arg { \
typedef typename std::tuple_element<i, std::tuple<Args...>>::type type; \
}; \
\
typedef std::tuple<Args...> packed_args_type; \
typedef R (*c_function_type)(Args...); \
constexpr static size_t n_args = sizeof...(Args)