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:
@ -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(); }
|
||||
|
Reference in New Issue
Block a user