Generic hash for tuples in unordered_map / unordered_set
This works on gcc 4.5 allowing all c++0x tuples containing standard hashable types to be members of unordered_map and unordered_set without further ado. (I put the code in a header file and just include it.) The function has to live in the std namespace so that it is picked up by argument-dependent name lookup (ADL). … Read more