I am trying to create a MINIMUM priority queue by using C++ STL's. What I want is it to be ordered from smallest to largest (min pq), using an int. What I also want is to have a pointer to a Class I created associated with it. So, when I pop values off the queue, I pop a pointer to that class rather than the integer itself.
I am just unfamiliar with the the syntax of the STL priority_queue. Can anyone help me with that?