class template
<functional>
std::mem_fun1_ref_ttemplate <class S, class T, class A> class mem_fun1_ref_t;
Generate function object class from single-parameter member (reference version)
Generates a binary function object class from a member of class
Tthat takes an argument of type
Aand returns a value of type
S.
mem_fun1_ref_t is generally used as a type. The function mem_fun_ref (also defined in header <functional>) can be used to directly construct an object of this type.
This class is derived from binary_function and is typically defined as:
1
2
3
4
5
6
7
8
9
template <class S, class T, class A>
class mem_fun1_ref_t : public binary_function <T,A,S>
{
S (T::*pmem)(A);
public:
explicit mem_fun1_ref_t ( S (T::*p)(A) ) : pmem (p) {}
S operator() (T& p, A x) const
{ return (p.*pmem)(x); }
};
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4