There is a priority_queue object in stl that gives you a max priority queue but I cant figure out how to get a min queue out of it. I defined my own compare object as im using objects for the elements but there doesnt seem to be anything I can return (from the compare object) to get a min queue. Its either a max queue or some meaningless order. Any ideas?