template<typename T, typename U>
struct std::hash< std::pair< T, U > >
Define a hasher for a std::pair of elements.
- Note
- This implementation was borrowed from older versions of boost. I will not use the newer version because it isn't guaranteed to give the same behavior across multiple runs of a program, which is detrimental randomness that we don't need (it obfuscates our control of randomness in our sampling processes).
-
Tested with 100M random pairs of same type and no collisions.
- Todo:
- Double-check that we get similar performance with differing types.