libsigc++
2.99.2
|
mem_fun() is used to convert a pointer to a method to a functor. More...
Functions | |
template<class T_return , class T_obj , class... T_arg> | |
decltype(auto) | sigc::mem_fun (T_return(T_obj::* _A_func)(T_arg...)) |
Creates a functor of type sigc::mem_functor which wraps a method. More... | |
template<class T_return , class T_obj , class T_obj2 , class... T_arg> | |
decltype(auto) | sigc::mem_fun (T_obj& _A_obj, T_return(T_obj2::* _A_func)(T_arg...)) |
Creates a functor of type sigc::bound_mem_functor which encapsulates a method and an object instance. More... | |
mem_fun() is used to convert a pointer to a method to a functor.
Optionally, a reference or pointer to an object can be bound to the functor.
If the member 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.
For const methods mem_fun() takes a const reference or pointer to an object.
Use mem_fun#() if there is an ambiguity as to the number of arguments.
|
inline |
Creates a functor of type sigc::mem_functor which wraps a method.
Creates a functor of type sigc::const_volatile_mem_functor which wraps a const volatile method.
Creates a functor of type sigc::volatile_mem_functor which wraps a volatile method.
Creates a functor of type sigc::const_mem_functor which wraps a const method.
_A_func | Pointer to method that should be wrapped. |
|
inline |
Creates a functor of type sigc::bound_mem_functor which encapsulates a method and an object instance.
Creates a functor of type sigc::bound_const_volatile_mem_functor which encapsulates a method and an object instance.
Creates a functor of type sigc::bound_volatile_mem_functor which encapsulates a method and an object instance.
Creates a functor of type sigc::bound_const_mem_functor which encapsulates a method and an object instance.
_A_obj | Reference to object instance the functor should operate on. |
_A_func | Pointer to method that should be wrapped. |