add Buffer::Iterator::clonep()
This commit is contained in:
parent
e8267b765b
commit
b0fadeab98
@ -102,6 +102,10 @@ public:
|
|||||||
}
|
}
|
||||||
size_t line() const { return m_line; }
|
size_t line() const { return m_line; }
|
||||||
size_t offset() const { return m_offset; }
|
size_t offset() const { return m_offset; }
|
||||||
|
std::shared_ptr<Iterator> clonep()
|
||||||
|
{
|
||||||
|
return std::make_shared<Iterator>(*this);
|
||||||
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
friend struct Range;
|
friend struct Range;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user