Template Class Priority_queue

You can instantiate any priority_queue with any sequence that has random access iterator and supporting operations front(), push_back() and pop_back().

Instantiation of a priority_queue requires supplying a function or function object for making the priority comparisons.