
21 Feb
2012
21 Feb
'12
2:08 p.m.
Hey,
W dniu 21 lutego 2012 14:27 użytkownik Daniel James
On 21 February 2012 12:32, Szymon Gatner
wrote: Yes. I assume you've seen this:
http://www.boost.org/libs/crc/
Although you might consider a stronger hash function.
Thanks a lot for detailed answer. Another question then: is computed CRC32 value good hash_value() for unorderd containers? I mean: say I have a ClassInfo class that keeps the name (string) and a hash (computed by crc algo) will that work fine (distribution-wise)? size_t hash_value(const ClassInfo& info) { return info.crcHash_; } Cheers, Simon