使用C++ 0x的unordered_map

dev*_*ull 5 c++ unordered-map g++ c++11

我使用的unordered_map是包括的: #include <unordered_map> 并且程序编译如下: g++ Test.cc -std=gnu++0x -o test 我使用的unordered_map是TR1还是C++ 0x的.还是两者都一样?

How*_*ant 6

我相信gcc会把他们的TR1标题放入<tr1/unordered_map>,所以你应该得到C++ 11版本.但它们非常相似.