mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-27 03:26:38 +00:00 
			
		
		
		
	This will reduce the number of path normalizations while more places will use this type. In some cases it also will reduce number of temporary allocations for new strings. For now make conversion from and to std::string_view implicit to allow gradual migration to this type.
		
			
				
	
	
		
			19 lines
		
	
	
	
		
			284 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
	
		
			284 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef OPENMW_COMPONENTS_VFS_FILEMAP_H
 | |
| #define OPENMW_COMPONENTS_VFS_FILEMAP_H
 | |
| 
 | |
| #include <map>
 | |
| #include <string>
 | |
| 
 | |
| namespace VFS
 | |
| {
 | |
|     class File;
 | |
| 
 | |
|     namespace Path
 | |
|     {
 | |
|         class Normalized;
 | |
|     }
 | |
| 
 | |
|     using FileMap = std::map<Path::Normalized, File*, std::less<>>;
 | |
| }
 | |
| 
 | |
| #endif
 |