How can I use a custom type for keys in a boost::unordered_map?
I'm using Boost's implementation of a hash map in a project right now, and I'm trying to implement a custom type for keys. I have four unsigned integers which I'd like to combine into a single 128-bit datatype to use as a key. I've created a struct with a 32-bit integer array of four elements, which serves as my storage. To be honest, I'm not sure how Boost's hash map works, so I'm not sure what I'm doing here, but I followed the Boost documentation ( http://www.boost.org/doc/libs/1_37_0/doc/html/hash/custom.html ) for extending boost::hash, and I created a hash function, as well as a custom