c++stlhashmapsgi

How to use sgi hash_table in VS2005?


I wrote a C++ project in VS2005, and used lots of STL container with its plus-in STL. However, I found STL in VS2005 does not have a hash_map in it, I want to use SGI hash_map. How can I change my project to use SGI STL?

Thanks for Brian's method, it works! And it's simple.


Solution

  • VS2005 does have a hash_map:

    #include <hash_map>
    stdext::hash_map
    

    If you still want to though you can download the sgi stl here. You should be able to just set the include directory to the sgi location. It will take precedence over the VC++ global include directories.