commit b375e5dfda6530e6aeaf291a5ff947294dbaea6d
parent e42a7bef2c6e505f3fbafc18c0b9ab563475ecd4
Author: Martin Kloeckner <mjkloeckner@gmail.com>
Date: Sun, 30 Jun 2024 17:54:29 -0300
change `class` for `typename` in template declaration
Diffstat:
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/list.h b/list.h
@@ -98,24 +98,24 @@ void List<Type>::insert(Type element) {
this->size++;
}
-template<class Type>
+template<typename Type>
void List<Type>::startCursor() {
this->cursor = NULL;
}
-template<class Type>
+template<typename Type>
bool List<Type>::forwardCursor() {
this->cursor = this->cursor == NULL ? this->first : this->cursor->getNext();
return (this->cursor != NULL);
}
-template<class Type>
+template<typename Type>
Node<Type> *List<Type>::getCursor() {
return this->cursor;
}
-template<class Type>
+template<typename Type>
Type List<Type>::getCursorData() {
return this->cursor->getData();
}