摘要: 在使用priority_queue、map、sort等,传入自定义比较函数时, comparator需要strict weak ordering,即comparator(x,x)必须返回false。 阅读全文
posted @ 2022-03-18 18:13 80k 阅读(547) 评论(0) 推荐(0)