#include<iostream>
#include<vector>
#include<queue>
using namespace std;
struct cmp{
bool operator () ( int r , int l ){
return r > l;
}
};
struct cmp1{
bool operator ()( int a ,int b ){
return a<b;
}
};
int main(void){
// priority_queue< int > q;// 默认是 从大到小。
// priority_queue < int , vector<int> ,less<int> > q;//从大到小
// priority_queue < int , vector<int>, greater<int> > q; //从小到大
// priority_queue < int , vector<int> , cmp1 > q;//从大到小
// priority_queue < int , vector<int> , cmp > q;//从小到大
q.push( 1 );
q.push( 2 );
q.push( 3 );
while( !q.empty() ){
int t =q.top();
q.pop();
printf("%d ",t);
}
return 0;
}