14 #ifndef LLVM_ADT_PRIORITYQUEUE_H
15 #define LLVM_ADT_PRIORITYQUEUE_H
27 class Compare = std::less<typename Sequence::value_type> >
28 class PriorityQueue :
public std::priority_queue<T, Sequence, Compare> {
35 template<
class Iterator>
49 typename Sequence::size_type i =
50 std::find(this->c.begin(), this->c.end(), t) - this->c.begin();
54 typename Sequence::size_type parent = (i - 1) / 2;
55 this->c[i] = this->c[parent];
72 std::make_heap(this->c.begin(), this->c.end(), this->comp);
const_iterator end(StringRef path)
Get end iterator over path.
const_iterator begin(StringRef path)
Get begin iterator over path.
Sequence
A sequence of states that a pointer may go through in which an objc_retain and objc_release are actua...
void erase_one(const T &t)
PriorityQueue(Iterator begin, Iterator end, const Compare &compare=Compare(), const Sequence &sequence=Sequence())
PriorityQueue(const Compare &compare=Compare(), const Sequence &sequence=Sequence())