protocol/RangeArg: add method IsOpenEnded()
This commit is contained in:
@ -44,6 +44,10 @@ struct RangeArg {
|
||||
return !(*this == other);
|
||||
}
|
||||
|
||||
constexpr bool IsOpenEnded() const noexcept {
|
||||
return end == All().end;
|
||||
}
|
||||
|
||||
constexpr bool IsAll() const noexcept {
|
||||
return *this == All();
|
||||
}
|
||||
|
Reference in New Issue
Block a user