I would like to see a hash_map example in C++

前端 未结 5 827
广开言路
广开言路 2020-12-08 03:41

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

5条回答
  •  盖世英雄少女心
    2020-12-08 04:29

    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

提交回复
热议问题