protocol/RangeArg: add method IsOpenEnded()
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user