projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebcba61
)
Add a clear() method to PriorityQueue.
author
Dan Gohman
<gohman@apple.com>
Mon, 23 Jun 2008 23:47:46 +0000
(23:47 +0000)
committer
Dan Gohman
<gohman@apple.com>
Mon, 23 Jun 2008 23:47:46 +0000
(23:47 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52656
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/ADT/PriorityQueue.h
patch
|
blob
|
history
diff --git
a/include/llvm/ADT/PriorityQueue.h
b/include/llvm/ADT/PriorityQueue.h
index 2503f75e81a265b279a1e0ed6d54ffb3c9b6295d..f10bb6c7afa85a842511b923defc1b5014c13dcc 100644
(file)
--- a/
include/llvm/ADT/PriorityQueue.h
+++ b/
include/llvm/ADT/PriorityQueue.h
@@
-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