最佳答案
class Person
{
public:
int age;
};
I want to store objects of the class Person in a priority queue.
priority_queue< Person, vector<Person>, ??? >
I think I need to define a class for the comparison thing, but I am not sure about it.
Also, when we write,
priority_queue< int, vector<int>, greater<int> >
How does the greater work?