Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(739)

Unified Diff: cc/scoped_ptr_vector.h

Issue 11469034: Expose vector::swap on ScopedPtrVector. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/scoped_ptr_vector.h
diff --git a/cc/scoped_ptr_vector.h b/cc/scoped_ptr_vector.h
index b4271e8231066f5d1bf14c5481e350658d52a183..ee1edbbf9f6eb4349b2af2ed344af1ac3b3773de 100644
--- a/cc/scoped_ptr_vector.h
+++ b/cc/scoped_ptr_vector.h
@@ -84,6 +84,10 @@ class ScopedPtrVector {
data_.insert(data_.begin() + index, item.release());
}
+ void swap(ScopedPtrVector<T>& other) {
+ data_.swap(other.data_);
+ }
+
iterator begin() { return data_.begin(); }
const_iterator begin() const { return data_.begin(); }
iterator end() { return data_.end(); }
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698