|
libsigc++
2.99.4
|
Converts an arbitrary functor into an adaptor type. More...
#include <sigc++/adaptors/adaptor_trait.h>

Public Types | |
| using | result_type = typename functor_trait< T_functor >::result_type |
Public Member Functions | |
| adaptor_functor ()=default | |
| Constructs an invalid functor. More... | |
| adaptor_functor (const T_functor& _A_functor) | |
| Constructs an adaptor_functor object that wraps the passed functor. More... | |
| template<class T_type > | |
| adaptor_functor (const T_type& _A_type) | |
| Constructs an adaptor_functor object that wraps the passed (member) function pointer. More... | |
| decltype(auto) | operator() () const |
| Invokes the wrapped functor passing on the arguments. More... | |
| template<class... T_arg> | |
| decltype(auto) | operator() (T_arg&&..._A_arg) const |
| Invokes the wrapped functor passing on the arguments. More... | |
Public Attributes | |
| T_functor | functor_ |
| Functor that is invoked from operator()(). More... | |
Converts an arbitrary functor into an adaptor type.
All adaptor types in libsigc++ have a template operator() member of every argument count they support. These functions in turn invoke a stored adaptor's template operator(), processing the arguments and return value in a characteristic manner. Explicit function template instantiation is used to pass type hints thus saving copy costs.
adaptor_functor is a glue between adaptors and arbitrary functors that just passes on the arguments. You won't use this type directly.
The template argument T_functor determines the type of stored functor.
| using sigc::adaptor_functor< T_functor >::result_type = typename functor_trait<T_functor>::result_type |
|
default |
Constructs an invalid functor.
|
inlineexplicit |
Constructs an adaptor_functor object that wraps the passed functor.
| _A_functor | Functor to invoke from operator()(). |
|
inlineexplicit |
Constructs an adaptor_functor object that wraps the passed (member) function pointer.
| _A_type | Pointer to function or class method to invoke from operator()(). |
|
inline |
Invokes the wrapped functor passing on the arguments.
|
inline |
Invokes the wrapped functor passing on the arguments.
| _A_arg... | Arguments to be passed on to the functor. |
|
mutable |
Functor that is invoked from operator()().
1.8.9.1