摘要: 参考:C++ 中自定义比较器的正确姿势 function: sort 1,2,3,4,5 (default: std::less<int>(), "<" ) print顺序:1->2,3,4,5(按照内存从小到大地址) cmp使用方法:比较方法 or 比较器对象 :std::greater<int> 阅读全文
posted @ 2021-06-05 14:29 habibah_chang 阅读(350) 评论(0) 推荐(0) 编辑