0

Expose vector::swap on ScopedPtrVector.

R=piman
BUG=123444

Review URL: https://codereview.chromium.org/11469034

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171848 0039d316-1c4b-4281-b951-d872f2087c98
This commit is contained in:
danakj@chromium.org
2012-12-07 21:44:12 +00:00
parent a46f329337
commit c44086d6c5

@ -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(); }