class Person
{
public:
int age;
};
I'd want to put objects of the type Person in a priority queue.
priority_queue< Person, vector<Person>, ??? >
I believe I need to declare a class for the comparison, but I'm not sure.
In addition, when we write,
priority_queue< int, vector<int>, greater<int> >
How does the greater work?