1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| priority_queue<int,vector<int>,greater<int> >q; priority_queue<int> q;
struct node{ int c, fc; bool operator < (const node& a) const { return fc < a.fc; } } priority_queue<node> q;
struct node2{ bool oprator() (node a,node b) { return a,x<b.x; } } priority_queue<node,vector<node>,node2> q;
|