C++中使用pair和make_pair在vector, sort -- ZZ
class SampleReducer: public mapreduce::BasicReducer {
public:
static bool ordering(const std::pair a,
const std::pair b) {
return a.second > b.second;
}
virtual void Reduce(mapreduce:
原创
2012-12-17 14:41:30 ·
951 阅读 ·
0 评论