singlyl inked list bugfix
This commit is contained in:
parent
538962d0c2
commit
5df88eb73b
@ -100,7 +100,7 @@ public:
|
||||
*/
|
||||
ElementIterator back() const {
|
||||
LinkedElement<T> *element = start;
|
||||
while (element != nullptr) {
|
||||
while (element->getNext() != nullptr) {
|
||||
element = element->getNext();
|
||||
}
|
||||
return ElementIterator::Iterator(element);
|
||||
|
Loading…
Reference in New Issue
Block a user