OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |