1
This commit is contained in:
2022-07-19 00:15:02 +02:00
parent d2401820c7
commit 99f60383ee
2 changed files with 7 additions and 4 deletions

View File

@ -29,6 +29,7 @@ public:
LinkedListIterator(Type* ptr) : Iterator<T>(ptr) {}
// Allow the iterator to traverse the links
LinkedListIterator& operator++() override {
// ptr is of type Wrapper<T>*
this->ptr = this->ptr->next;