Is hash_map part of the STL?

后端 未结 6 1964
一向
一向 2020-11-27 02:54

Quick question...Is hash_map part of the STL?

6条回答
  •  猫巷女王i
    2020-11-27 03:54

    hash_map is a part of STL, but not a part of Standard C++(C++11). And there is a similar implementation of hash_map named "std::unordered_map" in standard C++: http://www.cplusplus.com/reference/unordered_map/unordered_map/

    Currently, GNU C++ and MSVC++ have implemented hash_map for compiler extension, as well as Boost. Meanwhile, SGI has its own implementation for hash_map. You can refer to http://www.sgi.com/tech/stl/hash_map.html for details.

提交回复
热议问题