diff options
Diffstat (limited to 'src/buffer.hh')
| -rw-r--r-- | src/buffer.hh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/buffer.hh b/src/buffer.hh index 3114e861..4d48987f 100644 --- a/src/buffer.hh +++ b/src/buffer.hh @@ -71,6 +71,9 @@ public: bool operator> (const BufferIterator& iterator) const noexcept; bool operator>= (const BufferIterator& iterator) const noexcept; + bool operator== (const BufferCoord& coord) const noexcept; + bool operator!= (const BufferCoord& coord) const noexcept; + const char& operator* () const noexcept; const char& operator[](size_t n) const noexcept; size_t operator- (const BufferIterator& iterator) const; @@ -88,6 +91,8 @@ public: BufferIterator operator-- (int); const BufferCoord& coord() const noexcept { return m_coord; } + explicit operator BufferCoord() const noexcept { return m_coord; } + using Sentinel = BufferCoord; private: SafePtr<const Buffer> m_buffer; |
