hash_append
hash_append copied to clipboard
Implementation of hash_append proposal
Current code seems to be taken from Boost, but it is likely 32-bit oriented. Shouldn't the different constant be used for 64-bit size_t? https://github.com/HowardHinnant/hash_append/blob/bd892bfcbb1d84b05f87dd32cdb8c47e356c1a86/n3876.h#L34
`uhash` should have a constructor that takes a seed. One possible (performance-oriented) implementation could then xor the seed with `h` before returning it from `operator()`. Combined with initializing the seed...
I would like to propose adding an `identity_hash` that stores its input bytes as result. ~~~ class identity_hash { std::size_t m_state; public: static constexpr xstd::endian endian = xstd::endian::native; using result_type...
When hashing floats. You seem to handle plus and minus zero as the same value (as you should). In floats there are many different NAN values, that generally fall into...
Hi! Well, this is not a feature request, it's just that I'm not sure what's the preferred place for discussions about hash_append. I was wondering if you had considered using...