![]() |
template<typename F> struct result_type;
Header
#include <boost/function_types/result_type.hpp>
F
result_type<F>::type
F
Extracts the result type of a callable, builtin type.
If F
is no callable, builtin type, any attempt to access
the type
member results in a compile error.
template<typename F, class ClassTransform = add_reference<_> > struct parameter_types;
Header
#include <boost/function_types/parameter_types.hpp>
F
ClassTransform
F
is a member function pointer
parameter_types<F,ClassTransform>
Extracts the parameter types of a callable, builtin type.
If F
is no callable, builtin type, any attempt to access
the sequence results in a compile error.
template<typename F> struct function_arity;
Header
#include <boost/function_types/function_arity.hpp>
F
function_arity<F>
function_arity<F>::value
Extracts the function arity, that is the number of parameters. The hidden
this
of member function pointers counts, in other words
the arity value is always greater than or equal to one if F
is a member function pointer.
If F
is no callable, builtin type, any attempt to access
the value results in a compile error.
template<typename T, class ClassTransform = add_reference<_> > struct components;
Header
#include <boost/function_types/components.hpp>
T
ClassTransform
T
is a member function pointer
components<T,ClassTransform>
components<T,ClassTransform>::types
Extracts all properties of a callable builtin type, that is the result
type, followed by the parameter types (including the type of this
for member function pointers).
If T
is no callable builtin type, the component types
are an empty sequence and the Tag's meaning is equivalent to the null_tag
.
Copyright © 2004 -2007 Tobias Schwinger |