Standard C++ Library Reference ISO/IEC (VERSION3)
};
The template class defines its member function as returning left % right.
multiplies
template<class Ty>
struct multiplies : 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.
negate
template<class Ty>
struct negate : public unary_function<Ty, Ty> {
Ty operator()(const Ty& left) const;
};
The template class defines its member function as returning -left.
not1
template<class Fn1>
unary_negate<Fn1> not1(const Fn1& func);
The template function returns unary_negate<Fn1>(func).
not2
template<class Fn2>
binary_negate<Fn2> not2(const Fn2& func);
The template function returns binary_negate<Fn2>(func).
not_equal_to
template<class Ty>
struct not_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.
plus
template<class Ty>
struct plus : 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.