6.3w+
社区成员
//函数对象,也叫仿函数类,你可以把它做成可适配的,具体参考msdn
class KeyComp : public binary_function<string, string, bool>
{
public:
bool operator()(const string& gs1, const string& gs2) const
{
return gs1 > gs2;
}
};