took over changed for singly linked list

This commit is contained in:
Robin Müller 2020-06-24 11:40:48 +02:00
parent 6f2bb4125d
commit 8d633bf127

View File

@ -88,14 +88,15 @@ public:
ElementIterator begin() const {
return ElementIterator::Iterator(start);
}
typename ElementIterator::Iterator end() const {
ElementIterator end() const {
return ElementIterator::Iterator();
}
uint32_t getSize() const {
uint32_t size = 0;
size_t getSize() const {
size_t size = 0;
LinkedElement<T> *element = start;
while (element != NULL) {
while (element != nullptr) {
size++;
element = element->getNext();
}