Use std::unordered_set
This commit is contained in:
		
							parent
							
								
									a457d5ad4d
								
							
						
					
					
						commit
						54a34119f3
					
				
					 4 changed files with 5 additions and 27 deletions
				
			
		|  | @ -3,10 +3,7 @@ | |||
| #include "config.h" | ||||
| 
 | ||||
| #include <map> | ||||
| 
 | ||||
| #if HAVE_TR1_UNORDERED_SET | ||||
| #include <tr1/unordered_set> | ||||
| #endif | ||||
| #include <unordered_set> | ||||
| 
 | ||||
| #include "types.hh" | ||||
| 
 | ||||
|  | @ -70,11 +67,7 @@ inline std::ostream & operator << (std::ostream & str, const Symbol & sym) | |||
| class SymbolTable | ||||
| { | ||||
| private: | ||||
| #if HAVE_TR1_UNORDERED_SET | ||||
|     typedef std::tr1::unordered_set<string> Symbols; | ||||
| #else | ||||
|     typedef std::set<string> Symbols; | ||||
| #endif | ||||
|     typedef std::unordered_set<string> Symbols; | ||||
|     Symbols symbols; | ||||
| 
 | ||||
| public: | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue