Thrill  0.1
FunctionTraits< ReturnType(*)(Args...)> Struct Template Reference

Detailed Description

template<typename ReturnType, typename... Args>
struct thrill::common::FunctionTraits< ReturnType(*)(Args...)>

specialize for function pointers

Definition at line 72 of file function_traits.hpp.

#include <function_traits.hpp>

Public Types

template<size_t i>
using arg = typename std::tuple_element< i, args_tuple >::type
 
template<size_t i>
using arg_plain = typename std::remove_cv< typename std::remove_reference< arg< i > >::type >::type
 
using args_tuple = std::tuple< Args... >
 the tuple of arguments More...
 
using args_tuple_plain = std::tuple< typename std::remove_cv< typename std::remove_reference< Args >::type >::type... >
 the tuple of arguments: with remove_cv and remove_reference applied. More...
 
using is_const = std::true_type
 
using result_type = ReturnType
 

Static Public Attributes

static constexpr size_t arity = sizeof ... (Args)
 arity is the number of arguments. More...
 

Member Typedef Documentation

◆ arg

using arg = typename std::tuple_element<i, args_tuple>::type

the i-th argument is equivalent to the i-th tuple element of a tuple composed of those arguments.

Definition at line 91 of file function_traits.hpp.

◆ arg_plain

using arg_plain = typename std::remove_cv< typename std::remove_reference<arg<i> >::type>::type

return i-th argument reduced to plain type: remove_cv and remove_reference.

Definition at line 98 of file function_traits.hpp.

◆ args_tuple

using args_tuple = std::tuple<Args...>

the tuple of arguments

Definition at line 81 of file function_traits.hpp.

◆ args_tuple_plain

using args_tuple_plain = std::tuple< typename std::remove_cv< typename std::remove_reference<Args>::type>::type...>

the tuple of arguments: with remove_cv and remove_reference applied.

Definition at line 86 of file function_traits.hpp.

◆ is_const

using is_const = std::true_type

Definition at line 78 of file function_traits.hpp.

◆ result_type

using result_type = ReturnType

Definition at line 77 of file function_traits.hpp.

Member Data Documentation

◆ arity

constexpr size_t arity = sizeof ... (Args)
static

arity is the number of arguments.

Definition at line 75 of file function_traits.hpp.


The documentation for this struct was generated from the following file: