stdmem_fun_tstdmem_fun1_tstdconst_mem_fun_tstdconst_mem_fun1_t(3)
std::mem_fun_t,std::mem_fun1_t,std::const_mem_fun_t,std::const_mem_fun1_t - std::mem_fun_t,std::mem_fun1_t,std::const_mem_fun_t,std::const_mem_fun1_t
Synopsis
template <class S, class T>
class mem_fun_t : public unary_function<T *, S>
{
public:
(1)(deprecated in C++ 11)
explicit mem_fun_t(S (T::*p)());
(removed in C++ 17)
S
operator()(T *p) const;
};
template <class S, class T>
class const_mem_fun_t : public unary_function<const T *, S>
{
public:
(2)(deprecated in C++ 11)
explicit const_mem_fun_t(S (T::*p)() const);
(removed in C++ 17)
S
operator()(const T *p) const;
};
template <class S, class T, class Arg>
class mem_fun1_t : public binary_function<T *, A, S>
{
public:
(3)(deprecated in C++ 11)
explicit mem_fun1_t(S (T::*p)(A));
(removed in C++ 17)
S
operator()(T *p, A x) const;
};
template <class S, class T, class A>
class const_mem_fun1_t : public binary_function<const T *, A, S>
{
public:
(4)(deprecated in C++ 11)
explicit const_mem_fun1_t(S (T::*p)(A) const);
(removed in C++ 17)
S
operator()(const T *p, A x) const;
};Wrapper around a member function pointer. The class instance whose member function to call is passed as a pointer to the operator().
- Wraps a non-const member function with no parameters.
- Wraps a const member function with no parameters.
- Wraps a non-const member function with a single parameter.
- Wraps a const member function with a single parameter.
See also
mem_fun creates a wrapper from a pointer to member function, callable with a pointer to object