|
Align base::hash_map with C++11, part 1.
C++11's std::hash provides a default hash for T* that hashes by pointer value.
So does MSVC's stdext::hash_value, but not GCC's __gnu_cxx::hash (and STLPort's
std::hash). To align non-MSVC with both MSVC and the standard, provide a
default hash for pointers. This removes a lot of GCC-specific hash definitions.
Confusingly, all three provide a default hash for const char * that hashes as C
string, while not changing their equality. This CL does not change this on any
platform.
BUG= 420242
Committed: https://crrev.com/254bd40b3f63b8d1e484a5c88a2255681ea54e45
Cr-Commit-Position: refs/heads/master@{#299217}
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+11 lines, -196 lines) |
Patch |
 |
M |
base/containers/hash_tables.h
|
View
|
1
2
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
base/debug/trace_event_impl.h
|
View
|
|
1 chunk |
+0 lines, -11 lines |
0 comments
|
Download
|
 |
M |
base/memory/discardable_memory_manager.h
|
View
|
|
1 chunk |
+0 lines, -12 lines |
0 comments
|
Download
|
 |
M |
cc/resources/prioritized_resource_manager.h
|
View
|
|
1 chunk |
+0 lines, -10 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_sorter.h
|
View
|
|
1 chunk |
+0 lines, -13 lines |
0 comments
|
Download
|
 |
M |
cc/trees/layer_tree_impl.h
|
View
|
|
1 chunk |
+0 lines, -11 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/download/chrome_download_manager_delegate.h
|
View
|
|
1 chunk |
+0 lines, -11 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/profiles/profile.h
|
View
|
|
1 chunk |
+0 lines, -13 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/safe_browsing/protocol_manager.h
|
View
|
|
1 chunk |
+0 lines, -13 lines |
0 comments
|
Download
|
 |
M |
content/browser/manifest/manifest_manager_host.h
|
View
|
|
1 chunk |
+0 lines, -11 lines |
0 comments
|
Download
|
 |
M |
content/child/npapi/np_channel_base.h
|
View
|
|
1 chunk |
+0 lines, -29 lines |
0 comments
|
Download
|
 |
M |
content/common/gpu/gpu_memory_manager_unittest.cc
|
View
|
|
1 chunk |
+0 lines, -11 lines |
0 comments
|
Download
|
 |
M |
content/public/browser/browser_context.h
|
View
|
|
1 chunk |
+0 lines, -13 lines |
0 comments
|
Download
|
 |
M |
gpu/command_buffer/service/async_pixel_transfer_manager.h
|
View
|
|
1 chunk |
+0 lines, -11 lines |
0 comments
|
Download
|
 |
M |
net/quic/quic_ack_notifier_manager.h
|
View
|
|
1 chunk |
+0 lines, -11 lines |
0 comments
|
Download
|
 |
M |
tools/gn/target.h
|
View
|
|
1 chunk |
+0 lines, -16 lines |
0 comments
|
Download
|
Total messages: 20 (6 generated)
|