From cbb43d790d7ba0575369cebdf6f8cb451bd210fd Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 6 Jan 2023 19:53:00 +0100 Subject: Add PList::Array iterator member functions ... returning both iterators and const_iterators: * PList::Array::Begin() * PList::Array::End()--- src/Array.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src') diff --git a/src/Array.cpp b/src/Array.cpp index 23f9922..5a4fd68 100644 --- a/src/Array.cpp +++ b/src/Array.cpp @@ -88,6 +88,26 @@ Node* Array::operator[](unsigned int array_index) return _array.at(array_index); } +Array::iterator Array::Begin() +{ + return _array.begin(); +} + +Array::iterator Array::End() +{ + return _array.end(); +} + +Array::const_iterator Array::Begin() const +{ + return _array.begin(); +} + +Array::const_iterator Array::End() const +{ + return _array.end(); +} + void Array::Append(Node* node) { if (node) -- cgit v1.1-32-gdbae