When you have a std::pair of int and a class, does std::greater work?
I'm attempting to construct a priority queue of pairs that is ordered by the first element:
std::priority_queue<std::pair<double, classA>, std::vector<std::pair<double, classA>>, std::greater<std::pair<double, classA>>> priorityQueue
But I get an error message that says
"operator" has no match.
It also refers to the class type of the second element of the std::pair.
Is std::greater applied to the first and second std::pair elements?