std::mem_fun_t, std::mem_fun1_t, std::const_mem_fun_t, std::const_mem_fun1_t

From cppreference.com
< cpp‎ | utility‎ | functional
 
 
 
Function objects
Function wrappers
(C++11)
(C++11)
Bind
(C++11)
(C++11)
(C++11)
Reference wrappers
(C++11)(C++11)
Operator wrappers
Negators
Deprecated binders and adaptors
(deprecated)
(deprecated)
(deprecated)
(deprecated)
mem_fun_tmem_fun1_tconst_mem_fun_tconst_mem_fun1_t
(deprecated)(deprecated)(deprecated)(deprecated)
(deprecated)
(deprecated)(deprecated)(deprecated)(deprecated)
(deprecated)(deprecated)
(deprecated)(deprecated)
 
template< class S, class T >

class mem_fun_t : public unary_function<T*,S> {
public:
    explicit mem_fun_t(S (T::*p)());
    S operator()(T* p) const;

};
(1) (deprecated)
template< class S, class T >

class const_mem_fun_t : public unary_function<const T*,S> {
public:
    explicit const_mem_fun_t(S (T::*p)() const);
    S operator()(const T* p) const;

};
(2) (deprecated)
template< class S, class T, class Arg >

class mem_fun1_t : public binary_function<T*,A,S> {
public:
    explicit mem_fun1_t(S (T::*p)(A));
    S operator()(T* p, A x) const;

};
(2) (deprecated)
template< class S, class T, class A >

class const_mem_fun1_t : public binary_function<const T*,A,S> {
public:
    explicit const_mem_fun1_t(S (T::*p)(A) const);
    S operator()(const T* p, A x) const;

};
(4) (deprecated)

Wrapper around a member function pointer. The class instance whose member function to call is passed as a pointer to the operator().

1) Wraps a non-const member function with no parameters.
2) Wraps a const member function with no parameters.
3) Wraps a non-const member function with a single parameter.
4) Wraps a const member function with a single parameter.

[edit] See also

(deprecated)
creates a wrapper from a pointer to member function, callable with a pointer to object
(function template)
(deprecated)(deprecated)(deprecated)(deprecated)
wapper for a pointer to nullary or unary member function, callable with a reference to object
(class template)