The <hash_map> header is not part of the C ++ standard and is a compiler specific implementation. There is no guarantee that you can find it in any particular system or that the various implementations that arise in each system will be mutually compatible with each other.
If you want to use the hash map in C ++, you may need to look at boost::unordered_map , tr1::unordered_map or a prototype implementation of the C ++ 0x compiler std::unordered_map . These implementations are fairly standardized by either the ISO or the Boost community, and can be easily installed on most C ++ compilers. I know that it's a little presumptuous to just say βrewrite this code with another library,β but given that C ++ is going to get hash containers of this form, this is probably worth the investment.
templatetypedef
source share