
11 Apr
2005
11 Apr
'05
8:20 a.m.
Thorsten Ottosen wrote:
as a related issue, an array is a range, so why define hash_value for it?
So that you can call hash_combine with an array member, something like struct X { int a; long b[ 4 ]; }; size_t hash_value( X const & x ) { size_t seed = 0; hash_combine( seed, x.a ); hash_combine( seed, x.b ); return seed; }