Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #comparitor #priority #queu
ADD COMMENT
Topic
Name
7+2 =