Add <=, >= operators for TIdentifier

This commit is contained in:
ζeh Matt 2022-02-13 23:04:56 +02:00
parent 52047805db
commit aa3ad0424d
No known key found for this signature in database
GPG Key ID: 18CE582C71A225B0
1 changed files with 10 additions and 0 deletions

View File

@ -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();
}
};