1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-02-01 05:01:59 +01:00

Added a pointer hash function object for use in pointer maps.

llvm-svn: 316
This commit is contained in:
Vikram S. Adve 2001-07-28 04:41:10 +00:00
parent 09b706ba67
commit d8415b8fbd

View File

@ -19,4 +19,9 @@ template <> struct hash<string> {
}
};
// Provide a hash function for arbitrary pointers...
template <class T> struct hash<T *> {
inline size_t operator()(const T *Val) const { return (size_t)Val; }
};
#endif