diff --git a/query-request.hh b/query-request.hh index a5883600ec..2614d9f0a1 100644 --- a/query-request.hh +++ b/query-request.hh @@ -24,6 +24,9 @@ public: const T& value() const & { return _value; } T&& value() && { return std::move(_value); } bool is_inclusive() const { return _inclusive; } + bool operator==(const bound& other) const { + return (_value == other._value) && (_inclusive == other._inclusive); + } }; private: optional _start; @@ -243,6 +246,10 @@ public: return range(std::move(s), std::move(e), singular); } + bool operator==(const range& other) const { + return (_start == other._start) && (_end == other._end) && (_singular == other._singular); + } + template friend std::ostream& operator<<(std::ostream& out, const range& r); };