Answers for "how to use comparitor in priority queu in c++"

C++
0

how to use comparitor in priority queu in c++

class Node;
bool Compare(Node a, Node b);

std::priority_queue<Node, std::vector<Node>, decltype(&Compare)> openSet(Compare);
Posted by: Guest on June-06-2021

Browse Popular Code Answers by Language