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

Unified Diff: cc/base/scoped_ptr_hash_map.h

Issue 13051003: cpplint.py pass on cc/(base|debug|quads|resources)/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix prioritized_resource_unittest Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/base/scoped_ptr_deque.h ('k') | cc/base/scoped_ptr_vector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/scoped_ptr_hash_map.h
diff --git a/cc/base/scoped_ptr_hash_map.h b/cc/base/scoped_ptr_hash_map.h
index 734fb8a117c8e442bb5529b20f793f5ba7e50e0a..3a749a5cd3e507ae4fc3eae15359f3e1de338fd8 100644
--- a/cc/base/scoped_ptr_hash_map.h
+++ b/cc/base/scoped_ptr_hash_map.h
@@ -5,6 +5,9 @@
#ifndef CC_BASE_SCOPED_PTR_HASH_MAP_H_
#define CC_BASE_SCOPED_PTR_HASH_MAP_H_
+#include <algorithm>
+#include <utility>
+
#include "base/basictypes.h"
#include "base/hash_tables.h"
#include "base/logging.h"
@@ -14,11 +17,12 @@
namespace cc {
// This type acts like a hash_map<K, scoped_ptr<V> >, based on top of
-// std::hash_map. The ScopedPtrHashMap has ownership of all values in the data
+// base::hash_map. The ScopedPtrHashMap has ownership of all values in the data
// structure.
template <typename Key, typename Value>
class ScopedPtrHashMap {
typedef base::hash_map<Key, Value*> Container;
+
public:
typedef typename Container::iterator iterator;
typedef typename Container::const_iterator const_iterator;
« no previous file with comments | « cc/base/scoped_ptr_deque.h ('k') | cc/base/scoped_ptr_vector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698