some more little changes for single linked list

This commit is contained in:
Robin Müller 2020-06-24 11:40:21 +02:00
parent a682ca97d2
commit f826ada774

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();
}