Regina Calculation Engine
|
A hash function used to calculate hash values for arbitrary pointers. More...
#include <utilities/hashutils.h>
Public Member Functions | |
size_t | operator() (const void *p) const |
Returns a hash value for the given pointer. |
A hash function used to calculate hash values for arbitrary pointers.
This class is for use with the Standard Template Library.
The only guarantee provided by this hash function is that two pointers representing the same memory location will return the same hash value. Two pointers pointing to identical data in two different memory locations might very well return two different hash values.
|
inline |
Returns a hash value for the given pointer.
See the general class notes for further details.
p | the pointer whose hash value should be calculated. |