Standard C++ Library Reference ISO/IEC (VERSION3)

const_mem_fun_ref_t
template<class Result, class Ty>
struct const_mem_fun_ref_t
: public unary_function<Ty, Result> {
explicit const_mem_fun_t(Result (Ty::*pm)() const);
Result operator()(const 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)() const.
const_mem_fun1_t
template<class Result, class Ty, class Arg>
struct const_mem_fun1_t
: public binary_function<Ty *, Arg, Result> {
explicit const_mem_fun1_t(Result (Ty::*pm)(Arg) const);
Result operator()(const 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) const.
const_mem_fun1_ref_t
template<class Result, class Ty, class Arg>
struct const_mem_fun1_ref_t
: public binary_function<Ty, Arg, Result> {
explicit const_mem_fun1_ref_t(Result (Ty::*pm)(Arg) const);
Result operator()(const 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) const.
divides
template<class Ty>
struct divides : 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.
equal_to
template<class Ty>
struct equal_to
: public binary_function<Ty, Ty, bool> {
bool operator()(const Ty& left, const Ty& right) const;
};
The template class defines its member function as returning left == right.