在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

原文地址:https://www.cnblogs.com/vimmer/p/2738224.html