Index: base/memory/scoped_vector.h |
diff --git a/base/memory/scoped_vector.h b/base/memory/scoped_vector.h |
index 173ea5a1d63d1ac793730a4cfdce665016a52f8b..e1e5c722a4fbe2e6d9f6b902640246b3209cb41c 100644 |
--- a/base/memory/scoped_vector.h |
+++ b/base/memory/scoped_vector.h |
@@ -106,6 +106,10 @@ class ScopedVector { |
return v_.insert(position, x); |
} |
+ iterator insert(iterator position, scoped_ptr<T> x) { |
+ return v_.insert(position, x.release()); |
+ } |
+ |
// Lets the ScopedVector take ownership of elements in [first,last). |
template<typename InputIterator> |
void insert(iterator position, InputIterator first, InputIterator last) { |