Add a clear() method to PriorityQueue.

llvm-svn: 52656
This commit is contained in:
Dan Gohman 2008-06-23 23:47:46 +00:00
parent c44659b92a
commit cb236f7de9
1 changed files with 6 additions and 0 deletions

View File

@ -70,6 +70,12 @@ public:
void reheapify() {
std::make_heap(this->c.begin(), this->c.end(), this->comp);
}
/// clear - Erase all elements from the queue.
///
void clear() {
this->c.clear();
}
};
} // End llvm namespace