(资料图)
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); } };。
本文到此分享完毕,希望对大家有所帮助。
Copyright @ 2008-2017 news.dfce.com.cn All Rights Reserved 东方财经网 版权所有 关于我们
联系我们:dfcjw@sohu3.com