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

Side by Side Diff: base/hash_tables.h

Issue 190003: Add some comments to base. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 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 | base/scoped_ptr.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 5
6 // 6 //
7 // Deal with the differences between Microsoft and GNU implemenations 7 // Deal with the differences between Microsoft and GNU implemenations
8 // of hash_map. Allows all platforms to use |base::hash_map| and 8 // of hash_map. Allows all platforms to use |base::hash_map| and
9 // |base::hash_set|. 9 // |base::hash_set|.
10 // eg: 10 // eg:
11 // base::hash_map<int> my_map; 11 // base::hash_map<int> my_map;
12 // base::hash_set<int> my_set; 12 // base::hash_set<int> my_set;
13 // 13 //
14 // NOTE: It is an explicit non-goal of this class to provide a generic hash
15 // function for pointers. If you to hash a pointers to a particular class,
darin (slow to review) 2009/09/03 05:23:11 nit: "If you _want_ to hash pointers..."
16 // please define the template specialization elsewhere (for example, in its
17 // header file) and keep it specific to just pointers to that class. This is
18 // because identity hashes are not desirable for all types that might show up
19 // in containers as pointers.
14 20
15 #ifndef BASE_HASH_TABLES_H_ 21 #ifndef BASE_HASH_TABLES_H_
16 #define BASE_HASH_TABLES_H_ 22 #define BASE_HASH_TABLES_H_
17 23
18 #include "build/build_config.h" 24 #include "build/build_config.h"
19 25
20 #include "base/string16.h" 26 #include "base/string16.h"
21 27
22 #if defined(COMPILER_MSVC) 28 #if defined(COMPILER_MSVC)
23 #include <hash_map> 29 #include <hash_map>
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 DEFINE_STRING_HASH(string16); 101 DEFINE_STRING_HASH(string16);
96 #endif // WCHAR_T_IS_UTF32 102 #endif // WCHAR_T_IS_UTF32
97 103
98 #undef DEFINE_STRING_HASH 104 #undef DEFINE_STRING_HASH
99 105
100 } // namespace __gnu_cxx 106 } // namespace __gnu_cxx
101 107
102 #endif // COMPILER 108 #endif // COMPILER
103 109
104 #endif // BASE_HASH_TABLES_H_ 110 #endif // BASE_HASH_TABLES_H_
OLDNEW
« no previous file with comments | « no previous file | base/scoped_ptr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698