DescriptionWTF: De-specialize PtrHash<T>.
PtrHash<T> is specialized over various smart pointer types,
e.g. PtrHash<RefPtr<T>>. However, this abstraction is not necessary;
there's no code requiring the specialized versions, and they are nothing
more than individual class declarations. This patch gets rid of that
abstraction.
Additionally, hash functions for a raw pointer T* are now defined in
PtrHash<T>, instead of PtrHash<T*>, in order to align with other
XXXPtrHash class templates: for example, hash functions for RefPtr<T>
are in RefPtrHash<T>, not in RefPtrHash<RefPtr<T>>. I think my setup
is more idiomatic C++.
BUG=581524
Committed: https://crrev.com/ea9e9b39e9d5501f47d4d4d17dff59601985eaf4
Cr-Commit-Position: refs/heads/master@{#383897}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Fix Mac compile. #
Total comments: 2
Patch Set 3 : Remove extra equal() definitions. #Messages
Total messages: 21 (10 generated)
|