There is hash_map in STL , but the standard C ++ library is not .
Due to a common misconception, you might think of the C ++ standard library as “STL” or the part of your tool chain that implements the C ++ standard library as “STL implementation”. This is not true.
It is also very embarrassing that both MSVC ++ and GCC (which implement hash_map as an extension for the compiler), put it in std namespace , which is very misleading. * Sigh *
C ++ 11 introduced std::unordered_map , which is no different.
Lightness Races in Orbit May 6 '11 at 8:37 a.m. 2011-05-06 08:37
source share