mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-22 14:24:33 +01:00
Add <=, >= operators for TIdentifier
This commit is contained in:
@@ -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();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user