Also, for some reason the C++ standard library does not provide a simple hash_combine or similar that would allow composing hashes of sub-objects of your custom type in a straightforward manner.
The XOR operator?
This post doesn't think so: https://stackoverflow.com/questions/5889238/why-is-xor-the-d...
https://github.com/python/cpython/blob/71db5dbcd714b2e1297c4...