📜  C++代码示例中的优先级队列

📅  最后修改于: 2022-03-11 14:44:58.615000             🧑  作者: Mango

代码示例1
//Shubh'grepper
// Implementation of priority_queue in c++

//queue with elements in decreasing order
priority_queue pq;

// queue with elements in increasing order  using compare function inside declaration
priority_queue , greater > pq;

//priority_queue of type pair
#define pp pair
priority_queue , greater > pq;