template< class S, class T > class mem_fun_ref_t : public unary_function<T,S> { public: explicit mem_fun_ref_t(S (T::*p)()); S operator()(T& p) const; }; | (1) | (until C++17) (deprecated since C++11) |
template< class S, class T > class const_mem_fun_ref_t : public unary_function<T,S> { public: explicit const_mem_fun_ref_t(S (T::*p)() const); S operator()(const T& p) const; }; | (2) | (until C++17) (deprecated since C++11) |
template< class S, class T, class A > class mem_fun1_ref_t : public binary_function<T,A,S> { public: explicit mem_fun1_ref_t(S (T::*p)(A)); S operator()(T& p, A x) const; }; | (3) | (until C++17) (deprecated since C++11) |
template< class S, class T, class A > class const_mem_fun1_ref_t : public binary_function<T,A,S> { public: explicit const_mem_fun1_ref_t(S (T::*p)(A) const); S operator()(const T& p, A x) const; }; | (4) | (until C++17) (deprecated since C++11) |
Wrapper around a member function pointer. The class instance whose member function to call is passed as a reference to the operator()
.
(until C++17)
| creates a wrapper from a pointer to member function, callable with a reference to object (function template) |
(until C++17)(until C++17)(until C++17)(until C++17)
| wrapper for a pointer to nullary or unary member function, callable with a pointer to object (class template) |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
http://en.cppreference.com/w/cpp/utility/functional/mem_fun_ref_t