1

const iterator + separate iterator from list.h

This commit is contained in:
2022-07-18 21:55:06 +02:00
parent b9fe5d7d53
commit 2e4c0339a3
4 changed files with 52 additions and 41 deletions

View File

@ -92,6 +92,11 @@ void ArrayListDemo::run() {
kout << "List contains element: " << dec << i << endl;
}
kout << "Const iterator" << endl;
for (const int i : this->list) {
kout << "List contains element: " << dec << i << endl;
}
kout.unlock();
scheduler.exit();
}