| Index: cc/base/scoped_ptr_vector.h
|
| diff --git a/cc/base/scoped_ptr_vector.h b/cc/base/scoped_ptr_vector.h
|
| index d220aafa84f20afb002f77e29e8d510bd95889e1..e046648b6916bb72025fbefbd080dc6bf8bf11a2 100644
|
| --- a/cc/base/scoped_ptr_vector.h
|
| +++ b/cc/base/scoped_ptr_vector.h
|
| @@ -166,6 +166,21 @@ class ScopedPtrVector {
|
| std::sort(data_.begin(), data_.end(), comp);
|
| }
|
|
|
| + template <class Compare>
|
| + inline void make_heap(Compare comp) {
|
| + std::make_heap(data_.begin(), data_.end(), comp);
|
| + }
|
| +
|
| + template <class Compare>
|
| + inline void push_heap(Compare comp) {
|
| + std::push_heap(data_.begin(), data_.end(), comp);
|
| + }
|
| +
|
| + template <class Compare>
|
| + inline void pop_heap(Compare comp) {
|
| + std::pop_heap(data_.begin(), data_.end(), comp);
|
| + }
|
| +
|
| iterator begin() { return static_cast<iterator>(data_.begin()); }
|
| const_iterator begin() const { return data_.begin(); }
|
| iterator end() { return static_cast<iterator>(data_.end()); }
|
|
|