pointer_functor wraps existing non-member functions with, or without, arguments.
More...
#include <sigc++/functors/ptr_fun.h>
template<class T_return, class... T_args>
class sigc::pointer_functor< T_return, T_args >
pointer_functor wraps existing non-member functions with, or without, arguments.
Use the convenience function ptr_fun() to create an instance of pointer_functor.
The following template arguments are used:
template <class T_return , class... T_args>
template <class T_return , class... T_args>
Constructs an invalid functor.
template <class T_return , class... T_args>
Constructs a pointer_functor2 object that wraps an existing function.
- Parameters
-
_A_func | Pointer to function that will be invoked from operator()(). |
template <class T_return , class... T_args>
Execute the wrapped function.
- Parameters
-
_A_a1 | Argument to be passed on to the function. |
_A_a2 | Argument to be passed on to the function. |
- Returns
- The return value of the function invocation.
template <class T_return , class... T_args>