senf::function_traits_arg_type< Traits, index, flag > Struct Template Reference

Get argument type from function traits. More...

#include <senf/Utils/type_traits.hh>

Detailed Description

template<class Traits, int index, bool flag = (index < Traits::arity)>
struct senf::function_traits_arg_type< Traits, index, flag >

Get argument type from function traits.

function_traits_arg<Traits, index> will return the type of the index-th argument from Traits. If the function has no argument at that index, void is returned

typedef boost::function_traits<void (int, double)> traits;
BOOST_STATIC_ASSERT(( boost:is_same<
int
>::value ));
BOOST_STATIC_ASSERT(( boost::is_same<
void
>::value ));
    \tparam Traits \c boost::function_traits instantiation
    \tparam index 0 based argument index

Definition at line 83 of file type_traits.hh.


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