23 #ifndef AlpsPriorityQueue_h_
24 #define AlpsPriorityQueue_h_
41 AlpsCompare<T> comparison_;
54 comparison_.strategy_ = &c;
55 std::make_heap(vec_.begin(), vec_.end(), comparison_);
59 T
top()
const {
return vec_.front(); }
64 std::push_heap(vec_.begin(), vec_.end(), comparison_);
69 std::pop_heap(vec_.begin(), vec_.end(), comparison_);
91 class Container = std::vector<T>,
92 class Compare = std::less<typename Container::value_type> >