Standard C++ Library Reference ISO/IEC (VERSION3)
};
The template class stores a copy of pm, which must be a pointer to a member function of class Ty, in a private member
object. It defines its member function operator() as returning (pleft->*pm)().
mem_fun_ref_t
template<class Result, class Ty>
struct mem_fun_ref_t
: public unary_function<Ty, Result> {
explicit mem_fun_t(Result (Ty::*pm)());
Result operator()(Ty& left) const;
};
The template class stores a copy of pm, which must be a pointer to a member function of class Ty, in a private member
object. It defines its member function operator() as returning (left.*pm)().
mem_fun1_t
template<class Result, class Ty, class Arg>
struct mem_fun1_t
: public binary_function<Ty *, Arg, Result> {
explicit mem_fun1_t(Result (Ty::*pm)(Arg));
Result operator()(Ty *pleft, Arg right) const;
};
The template class stores a copy of pm, which must be a pointer to a member function of class Ty, in a private member
object. It defines its member function operator() as returning (pleft->*pm)(right).
mem_fun1_ref_t
template<class Result, class Ty, class Arg>
struct mem_fun1_ref_t
: public binary_function<Ty, Arg, Result> {
explicit mem_fun1_ref_t(Result (Ty::*pm)(Arg));
Result operator()(Ty& left, Arg right) const;
};
The template class stores a copy of pm, which must be a pointer to a member function of class Ty, in a private member
object. It defines its member function operator() as returning (left.*pm)(right).
minus
template<class Ty>
struct minus : public binary_function<Ty, Ty, Ty> {
Ty operator()(const Ty& left, const Ty& right) const;
};
The template class defines its member function as returning left - right.
modulus
template<class Ty>
struct modulus : public binary_function<Ty, Ty, Ty> {
Ty operator()(const Ty& left, const Ty& right) const;