I would like to compute a hash value of an unordered_map
data structure as a whole. This enables to easily compare two map
s whether they contain exactly the same key-value-pairs or not.
Obviously, one can iterate over the included pairs, build a long string an hash it afterwards but I can imagine that there are better ways to do this.
For the moment, the actual hash function is not that crucial. I think md5
would be ok. sha
too of course.
Are there any suggestions?