mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-11-04 06:26:39 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
	
		
			657 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
	
		
			657 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#ifndef OPENMW_COMPONENTS_CONTENT_LESSBYID_H
 | 
						|
#define OPENMW_COMPONENTS_CONTENT_LESSBYID_H
 | 
						|
 | 
						|
#include <components/esm/refid.hpp>
 | 
						|
 | 
						|
#include <string_view>
 | 
						|
 | 
						|
namespace EsmLoader
 | 
						|
{
 | 
						|
    struct LessById
 | 
						|
    {
 | 
						|
        template <class T>
 | 
						|
        bool operator()(const T& lhs, const T& rhs) const
 | 
						|
        {
 | 
						|
            return lhs.mId < rhs.mId;
 | 
						|
        }
 | 
						|
 | 
						|
        template <class T>
 | 
						|
        bool operator()(const T& lhs, const ESM::RefId& rhs) const
 | 
						|
        {
 | 
						|
            return lhs.mId < rhs;
 | 
						|
        }
 | 
						|
 | 
						|
        template <class T>
 | 
						|
        bool operator()(const T& lhs, std::string_view rhs) const
 | 
						|
        {
 | 
						|
            return lhs.mId < rhs;
 | 
						|
        }
 | 
						|
    };
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |