(资料图)1、这只是个原型你要看类实现。2、这是vc9 functional头里的实现templatestruct greater : public binary_function<_Ty, _Ty, bool> { // functor for operator> bool operator()(const _Ty& _Left, const _Ty& _Right) const { // apply operator> to operands return (_Left > _Right); } };。本文到此分享完毕,希望对大家有所帮助。