
15 Mar
2005
15 Mar
'05
5:15 p.m.
Dave Harris wrote:
But suppose I have pair< pair<int,int>, pair<int,int> > ? Shouldn't that yield the same hash value as int[4] ?
I don't expect a pair< pair<int, int>, pair<int, int> > to be frequently refactored into an int[4]. So no, I don't think that it should necessarily have the same hash value as an int[4]. Similarly, I don't think that vector< vector<int> > should necessarily have the same hash value as its flattened vector<int> counterpart.