在Linux的STL中用hash_map

 1 #ifdef __GNUC__                       
 2 #include <ext/hash_map>               
 3 #else                                 
 4 #include <hash_map>                   
 5 #endif                                
 6                                       
 7                                       
 8 namespace std                         
 9 {                                     
10 using namespace __gnu_cxx;            
11 }                                     
12                                       
13 using  namespace std;                 
14 int main()                            
15 {                                     
16                                       
17 //std::hash_map<int,int> hm;          
18 hash_map<int,int> hm;                 
19                                       
20 return 0;                             
21 }                                     

在linux中用的STL用hash_map

posted on 2012-10-25 09:44  Orz..  阅读(390)  评论(0编辑  收藏  举报

导航