prioity_queue
本文最后更新于 2020年4月7日 下午
prioity_queue
实际上是一个大顶堆,定义在<queue>中
prioity_queue<int> qu为大顶堆
priority_queue<int,vector<int>,greater<int> > qu;为小顶堆
.push()
.pop()取出元素,但不返回值
.top()不取出元素,返回值
prioity_queue
https://www.xinhecuican.tech/post/54612.html