some more little changes for single linked list
This commit is contained in:
parent
a682ca97d2
commit
f826ada774
@ -88,14 +88,15 @@ public:
|
|||||||
ElementIterator begin() const {
|
ElementIterator begin() const {
|
||||||
return ElementIterator::Iterator(start);
|
return ElementIterator::Iterator(start);
|
||||||
}
|
}
|
||||||
typename ElementIterator::Iterator end() const {
|
|
||||||
|
ElementIterator end() const {
|
||||||
return ElementIterator::Iterator();
|
return ElementIterator::Iterator();
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t getSize() const {
|
size_t getSize() const {
|
||||||
uint32_t size = 0;
|
size_t size = 0;
|
||||||
LinkedElement<T> *element = start;
|
LinkedElement<T> *element = start;
|
||||||
while (element != NULL) {
|
while (element != nullptr) {
|
||||||
size++;
|
size++;
|
||||||
element = element->getNext();
|
element = element->getNext();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user