fork(41) download
  1. #include <queue>
  2. #include <vector>
  3.  
  4. bool compare(int a, int b)
  5. {
  6. return (a<b);
  7. }
  8.  
  9. std::priority_queue<int, std::vector<int>, decltype(&compare)> pq1(&compare);
  10.  
  11. std::priority_queue<int,std::vector<int>, std::less<int> > pq2;
  12.  
  13. int main() {
  14. return 0;
  15. }
Success #stdin #stdout 0s 3292KB
stdin
Standard input is empty
stdout
Standard output is empty