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

Side by Side Diff: base/containers/scoped_ptr_hash_map.h

Issue 23526014: Remove incorrect const qualifier from resize(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef BASE_CONTAINERS_SCOPED_PTR_HASH_MAP_H_ 5 #ifndef BASE_CONTAINERS_SCOPED_PTR_HASH_MAP_H_
6 #define BASE_CONTAINERS_SCOPED_PTR_HASH_MAP_H_ 6 #define BASE_CONTAINERS_SCOPED_PTR_HASH_MAP_H_
7 7
8 #include <algorithm> 8 #include <algorithm>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 inline std::pair<iterator, iterator> equal_range(const Key& k) { 132 inline std::pair<iterator, iterator> equal_range(const Key& k) {
133 return data_.equal_range(k); 133 return data_.equal_range(k);
134 } 134 }
135 135
136 inline size_t size() const { return data_.size(); } 136 inline size_t size() const { return data_.size(); }
137 inline size_t max_size() const { return data_.max_size(); } 137 inline size_t max_size() const { return data_.max_size(); }
138 138
139 inline bool empty() const { return data_.empty(); } 139 inline bool empty() const { return data_.empty(); }
140 140
141 inline size_t bucket_count() const { return data_.bucket_count(); } 141 inline size_t bucket_count() const { return data_.bucket_count(); }
142 inline void resize(size_t size) const { return data_.resize(size); } 142 inline void resize(size_t size) { return data_.resize(size); }
143 143
144 inline iterator begin() { return data_.begin(); } 144 inline iterator begin() { return data_.begin(); }
145 inline const_iterator begin() const { return data_.begin(); } 145 inline const_iterator begin() const { return data_.begin(); }
146 inline iterator end() { return data_.end(); } 146 inline iterator end() { return data_.end(); }
147 inline const_iterator end() const { return data_.end(); } 147 inline const_iterator end() const { return data_.end(); }
148 148
149 private: 149 private:
150 Container data_; 150 Container data_;
151 151
152 DISALLOW_COPY_AND_ASSIGN(ScopedPtrHashMap); 152 DISALLOW_COPY_AND_ASSIGN(ScopedPtrHashMap);
153 }; 153 };
154 154
155 } // namespace base 155 } // namespace base
156 156
157 #endif // BASE_CONTAINERS_SCOPED_PTR_HASH_MAP_H_ 157 #endif // BASE_CONTAINERS_SCOPED_PTR_HASH_MAP_H_
OLDNEW
« 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