WIP: somethings wrong.. #19

Closed
muellerr wants to merge 808 commits from source/master into master
Showing only changes of commit bb16fd80b8 - Show all commits

View File

@ -61,8 +61,8 @@ public:
this->next = next; this->next = next;
} }
void setEnd() { virtual void setEnd() {
this->next = nullptr; this->next = nullptr;
} }
LinkedElement* begin() { LinkedElement* begin() {
@ -107,6 +107,11 @@ public:
void setStart(LinkedElement<T>* setStart) { void setStart(LinkedElement<T>* setStart) {
start = setStart; start = setStart;
} }
void setEnd(LinkedElement<T>* setEnd) {
setEnd->setEnd();
}
protected: protected:
LinkedElement<T> *start = nullptr; LinkedElement<T> *start = nullptr;
}; };