mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 19:26:38 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			26 lines
		
	
	
	
		
			834 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
	
		
			834 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef OPENMW_COMPONENTS_DETOURNAVIGATOR_VERSION_H
 | |
| #define OPENMW_COMPONENTS_DETOURNAVIGATOR_VERSION_H
 | |
| 
 | |
| #include <cstddef>
 | |
| #include <tuple>
 | |
| 
 | |
| namespace DetourNavigator
 | |
| {
 | |
|     struct Version
 | |
|     {
 | |
|         std::size_t mGeneration = 0;
 | |
|         std::size_t mRevision = 0;
 | |
| 
 | |
|         friend inline auto tie(const Version& value) { return std::tie(value.mGeneration, value.mRevision); }
 | |
| 
 | |
|         friend inline bool operator<(const Version& lhs, const Version& rhs) { return tie(lhs) < tie(rhs); }
 | |
| 
 | |
|         friend inline bool operator<=(const Version& lhs, const Version& rhs) { return tie(lhs) <= tie(rhs); }
 | |
| 
 | |
|         friend inline bool operator==(const Version& lhs, const Version& rhs) { return tie(lhs) == tie(rhs); }
 | |
| 
 | |
|         friend inline bool operator!=(const Version& lhs, const Version& rhs) { return !(lhs == rhs); }
 | |
|     };
 | |
| }
 | |
| 
 | |
| #endif
 |