mirror of https://github.com/OpenRCT2/OpenRCT2.git
Add <=, >= operators for TIdentifier
This commit is contained in:
parent
52047805db
commit
aa3ad0424d
|
@ -86,8 +86,18 @@ public:
|
|||
return ToUnderlying() < other.ToUnderlying();
|
||||
}
|
||||
|
||||
constexpr bool operator<=(const TIdentifier& other) const noexcept
|
||||
{
|
||||
return ToUnderlying() <= other.ToUnderlying();
|
||||
}
|
||||
|
||||
constexpr bool operator>(const TIdentifier& other) const noexcept
|
||||
{
|
||||
return ToUnderlying() > other.ToUnderlying();
|
||||
}
|
||||
|
||||
constexpr bool operator>=(const TIdentifier& other) const noexcept
|
||||
{
|
||||
return ToUnderlying() >= other.ToUnderlying();
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue