libsigc++: Adaptors

libsigc++ 2.12.0

Modules | Classes
Adaptors

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

## Modules
| bind(), bind_return()
| sigc::bind() alters an arbitrary functor by fixing arguments to certain values.
| compose()
| sigc::compose() combines two or three arbitrary functors.
| exception_catch()
| sigc::exception_catch() catches an exception thrown from within the wrapped functor and directs it to a catcher functor.
| hide(), hide_return()
| sigc::hide() alters an arbitrary functor in that it adds a parameter whose value is ignored on invocation of the returned functor.
| retype(), retype_return()
| sigc::retype() alters a sigc::pointer_functor, a sigc::mem_functor or a sigc::slot in that it makes C-style casts to the functor's parameter types of all parameters passed through operator()().
| track_obj(), track_object()
| sigc::track_object() tracks trackable objects, referenced from a functor.

## Classes
struct | sigc::adaptor_base
| A hint to the compiler. More...
struct | sigc::adaptor_functor< T_functor >
| Converts an arbitrary functor into an adaptor type. More...
struct | sigc::adaptor_trait< T_functor, I_isadaptor >
| Trait that specifies what is the adaptor version of a functor type. More...
struct | sigc::adapts< T_functor >
| Base type for adaptors. More...
struct | sigc::deduce_result_type< T_functor, T_args >
| Deduce the return type of a functor. More...

## 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(), track_obj() and group().

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