How can I create Min stl priority_queue?

Posted by eriks on Stack Overflow See other posts from Stack Overflow or by eriks
Published on 2010-03-13T17:35:21Z Indexed on 2010/03/13 17:45 UTC
Read the original article Hit count: 189

Filed under:
|
|

The default stl priority queue is a Max one (Top function returns the largest element).

Say, for simplicity, that it is a priority queue of int values.

© Stack Overflow or respective owner

Related posts about c++

Related posts about stl