Commit ad059d58 authored by Max Kellermann's avatar Max Kellermann

protocol/RangeArg: add method IsOpenEnded()

parent 6e1940e9
...@@ -44,6 +44,10 @@ struct RangeArg { ...@@ -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();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment