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