
4 Dec
2006
4 Dec
'06
6:23 p.m.
Boris Mansencal wrote:
std::tr1::unordered_map
map_point_to_myType(10, ptHasher(height)); Is there any drawback to do things like that ? Is there any portability issue ?
I can't think of any; this seems to be a good way. For p.y() in 0 .. height-1, you hash function is now "perfect", that is, hash( p1 ) != hash( p2 ) when p1 != p2.