From 8a2bc444db5fa6640964574817071b29d254814f Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 21 Nov 2017 19:07:41 -0500 Subject: [PATCH] Add Buffer::beginp() and Buffer::endp() --- src/core/Buffer.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/Buffer.h b/src/core/Buffer.h index 95afabf..a7b2af8 100644 --- a/src/core/Buffer.h +++ b/src/core/Buffer.h @@ -177,7 +177,9 @@ public: const Buffer::Iterator & end); std::shared_ptr filename() const { return m_filename; } Iterator begin() const { return Iterator(this); } + std::shared_ptr beginp() const { return std::make_shared(this); } Iterator end() const { return *m_eof_iterator; } + std::shared_ptr endp() const { return std::make_shared(*m_eof_iterator); } void push_operation() { m_operation_level++; } void pop_operation(); void undo();