libsigc++
3.0.2
|
mem_fun() Creates a functor from a pointer to a method. More...
Functions | |
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... | |
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... | |
mem_fun() Creates a functor from a pointer to a method.
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.
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.
obj | Reference to object instance the functor should operate on. |
func | Pointer to method that should be wrapped. |