namespace my_ns
{
template <class T_functor>
{
template <class T_arg1=void, class T_arg2=void>
struct deduce_result_type
operator()() const;
template <class T_arg1>
operator()(T_arg1 _A_arg1) const;
template <class T_arg1, class T_arg2>
operator()(T_arg1 _A_arg1, T_arg2 _A_arg2) const;
explicit my_adaptor(const T_functor& _A_functor)
};
}
{
template <class T_functor>
struct visitor<my_ns::my_adaptor<T_functor> >
{
template <class T_action>
static void do_visit_each(const T_action& _A_action,
const my_ns::my_adaptor<T_functor>& _A_target)
{
}
};
}
void visit_each(const T_action &_A_action, const T_functor &_A_functor)
This function performs a functor on each of the targets of a functor.
Definition: visit_each.h:169
The libsigc++ namespace.
Definition: limit_reference.h:12
typename deduce_result_type< T_functor, T_args... >::type deduce_result_t
Definition: deduce_result_type.h:68
Base type for adaptors.
Definition: adaptor_trait.h:387
adaptor_trait< T_functor >::result_type result_type
Definition: adaptor_trait.h:388
adapts(const T_functor &_A_functor)
Constructs an adaptor that wraps the passed functor.
Definition: adaptor_trait.h:394
decltype(test< T_functor >()) type
Definition: deduce_result_type.h:64
void result_type
Definition: functor_trait.h:135