I don\'t know how to use the hash function in C++, but I know that we can use hash_map. Does g++ support that by simply including #include
hash_map
#include
hash_map is a non-standard extension. unordered_map is part of std::tr1, and will be moved into the std namespace for C++0x. http://en.wikipedia.org/wiki/Unordered_map_%28C%2B%2B%29