mem_fun1_ref_t Class
Visual Studio 2012
An adapter class that allows a non_const member function that takes a single argument to be called as a binary function object when initialized with a reference argument.
template<class Result, class Type, class Arg>
class mem_fun1_ref_t : public binary_function<Type, Arg, Result> {
explicit mem_fun1_ref_t(
Result (Type::* _Pm )( Arg )
);
Result operator()(
Type& _Left,
Arg _Right
) const;
};
The constructor of mem_fun1_ref_t is not usually used directly; the helper function mem_fun_ref is used to adapt member functions. See mem_fun_ref for an example of how to use member function adaptors.