Thunder Bird
Communication & Improvement
posts - 47,  comments - 155,  trackbacks - 0
Formal deprecation of <ext/hash_set> and <ext/hash_map>, which are now <backward/hash_set> and <backward/hash_map>. This code:
#include <ext/hash_set>
__gnu_cxx::hash_set<int> s;

Can be transformed (in order of preference) to:
#include <tr1/unordered_set>
std::tr1::unordered_set<int> s;

or
#include <backward/hash_set>
__gnu_cxx::hash_set<int> s;

Similar transformations apply to __gnu_cxx::hash_map, __gnu_cxx::hash_multimap, __gnu_cxx::hash_set, __gnu_cxx::hash_multiset.
posted on 2009-09-02 13:05 Thunder 阅读(1872) 评论(3)  编辑 收藏 引用

FeedBack:
# re: hash_set, hash_map在linux下编译出现not declared的解决方法
2009-09-04 14:39 | 99读书人
不错哦 顶个  回复  更多评论
  
# re: hash_set, hash_map在linux下编译出现not declared的解决方法
2009-09-05 12:11 | 99读书人
不错哦  回复  更多评论
  
# re: hash_set, hash_map在linux下编译出现not declared的解决方法
2009-09-10 16:35 | 凡客官网
Similar transformations apply to __gnu_cxx::hash_map, __gnu_cxx::hash_multimap, __gnu_cxx::hash_set, __gnu_cxx::hash_multiset  回复  更多评论
  
只有注册用户登录后才能发表评论。

<2009年9月>
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

常用链接

留言簿(8)

随笔档案

相册

搜索

  •  

最新评论

阅读排行榜

评论排行榜