131 void insertFront(
const T& ndata);
139 void insertBack(
const T& ndata);
153 void reverseNth(
int n);
181 void mergeWith(
List<T>& otherList);
190 #include "List-ListIterator.hpp" 204 template <
class Iter>
205 List(
const Iter& start,
const Iter&
end);
242 void _copy(
const List<T>& other);
309 #include "List-given.hpp" ListNode * tail_
The tail of the list.
Definition: List.h:223
int length_
The length of the current List.
Definition: List.h:228
const T data
The data contained in this node.
Definition: List.h:60
List: This is a templated linked list class (meaning it contains data of templated type T...
Definition: List.h:21
Definition: List-ListIterator.hpp:2
The ListNode class is private to the List class via the principle of encapsulation—the end user does...
Definition: List.h:28
ListNode * head_
The head of the List.
Definition: List.h:218
ListNode * next
A pointer to the next node in the list.
Definition: List.h:48
ListNode * prev
A pointer to the previous node in the list.
Definition: List.h:54