摘要: 以优先队列为例,从cppreference查得,它的模板为 所以我们要定义一个Compare类实现less的功能,在观察less类的内容,https://en.cppreference.com/w/cpp/utility/functional/less 实现非常简单,只要对我们自定义的类实现oper 阅读全文
posted @ 2018-09-07 01:34 bloomingFlower 阅读(175) 评论(0) 推荐(0) 编辑