1

update iterator for new list interface

This commit is contained in:
2022-07-19 00:02:02 +02:00
parent 0451af3d9c
commit d7fcd61c11

View File

@ -63,16 +63,15 @@ private:
return NULL;
}
protected:
typename Iterator::Type* begin_ptr() override {
return this->head;
}
typename Iterator::Type* end_ptr() override {
return this->tail->next;
}
public:
Iterator begin() override {
return Iterator(this->head);
}
Iterator end() override {
return Iterator(this->tail->next);
}
unsigned int insert_at(Type e, unsigned int i) override {
if (i > this->size()) {
return -1;