Index: base/scoped_vector.h |
diff --git a/base/scoped_vector.h b/base/scoped_vector.h |
index ec152c9dc46bb24d3b3200c84c4b23bc3fbcda17..04b58b6760e624067eabb6d3395e315280b81ecf 100644 |
--- a/base/scoped_vector.h |
+++ b/base/scoped_vector.h |
@@ -55,6 +55,7 @@ class ScopedVector { |
void reset() { STLDeleteElements(&v); } |
void resize(size_t new_size) { v.resize(new_size); } |
+ void clear() { v.clear(); } |
dhollowa
2010/11/12 01:52:03
|weak_erase| should be sufficient, no?
Ilya Sherman
2010/11/12 05:15:38
Oops, I should be using reset(). Thanks for point
|
// Lets the ScopedVector take ownership of |x|. |
iterator insert(iterator position, T* x) { |