libsigc++
3.6.0
|
mem_fun() creates a functor from a pointer to a method. More...
Functions | |
template<typename T_return , typename T_obj , typename T_obj2 , typename... T_arg> | |
decltype(auto) | sigc::mem_fun (T_obj & obj, T_return(T_obj2::* func)(T_arg...)) |
Creates a functor of type sigc::bound_mem_functor which encapsulates a method and an object instance. More... | |
template<typename T_return , typename T_obj , typename... T_arg> | |
decltype(auto) | sigc::mem_fun (T_return(T_obj::* func)(T_arg...)) |
Creates a functor of type sigc::mem_functor which wraps a method. More... | |
mem_fun() creates a functor from a pointer to a method.
Optionally, a reference to an object can be bound to the functor.
For const methods mem_fun() takes a const reference or pointer to an object.
If the member function pointer is to an overloaded type, you must specify the types using template arguments.
|
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.
obj | Reference to object instance the functor should operate on. |
func | Pointer to method that should be wrapped. |
|
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.
func | Pointer to method that should be wrapped. |