阅读背景:

无法编译std :: map排序,为什么?

来源:互联网 

This is my code:

这是我的代码:

map<string, int> errs;
struct Compare {
    bool operator() (map<string, int>::const_iterator l, 
        map<string, int>::const_iterator r) { 
        return ((*l).second < (*r).second); 
    }
} comp;
sort(errs.begin(), errs.end(), comp);
map<string, int> e



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: