mirror of https://github.com/OpenMW/openmw.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
471 B
C++
25 lines
471 B
C++
3 years ago
|
#ifndef OPENMW_COMPONENTS_CONTENT_LESSBYID_H
|
||
|
#define OPENMW_COMPONENTS_CONTENT_LESSBYID_H
|
||
|
|
||
|
#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, std::string_view rhs) const
|
||
|
{
|
||
|
return lhs.mId < rhs;
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
#endif
|