Main Page Groups Namespaces

# Adaptors

Adaptors are functors that alter the signature of a functor's operator()(). More...

## Modules
bind()
| sigc::bind() alters an arbitrary functor by fixing arguments to certain values.

hide()
| sigc::hide() alters an arbitrary functor in that it adds a parameter whose value is ignored on invocation of the returned functor.

## Compounds
struct | adaptor_base
| A hint to the compiler. More...
struct | adaptor_functor
| Converts an arbitrary functor into an adaptor type. More...
struct | adapts
| Base type for adaptors. More...
struct | deduce_result_type
| Deduce the return type of a functor. More...
## Functions
template <class T_action, class T_functor> void | sigc::visit_each (const T_action& _A_action, const adaptor_functor<T_functor>& _A_target)
| Performs a functor on each of the targets of a functor.

## Detailed Description

Adaptors are functors that alter the signature of a functor's operator()().

The adaptor types libsigc++ provides are created with bind(), bind_return(), hide(), hide_return(), retype_return(), retype(), compose(), exception_catch() and group().

You can easily derive your own adaptor type from sigc::adapts.

## Function Documentation

template <class T_action, class T_functor>
void visit_each | ( | const T_action& | _A_action,
|  | const adaptor_functor<T_functor>& | _A_target
| ) |

| Performs a functor on each of the targets of a functor. The function overload for sigc::adaptor_functor performs a functor on the functor stored in the sigc::adaptor_functor object.