libsigc++
2.99.3
|
ptr_fun() is used to convert a pointer to a function to a functor. More...
Classes | |
class | sigc::pointer_functor< T_return, T_args > |
pointer_functor wraps existing non-member functions with, or without, arguments. More... | |
Functions | |
template<class T_return , class... T_args> | |
decltype(auto) | sigc::ptr_fun (T_return(* _A_func)(T_args...)) |
Creates a functor of type sigc::pointer_functor which wraps an existing non-member function. More... | |
ptr_fun() is used to convert a pointer to a function to a functor.
If the function pointer is to an overloaded type, you must specify the types using template arguments starting with the first argument. It is not necessary to supply the return type.
ptr_fun() can also be used to convert a pointer to a static member function to a functor, like so:
|
inline |
Creates a functor of type sigc::pointer_functor which wraps an existing non-member function.
_A_func | Pointer to function that should be wrapped. |