template <typename T>
typename List<T>::ListNode *& List<T>::_index(unsigned index){
return _index(index, head_)
}
List.hpp
template <typename T>
typename List<T>::ListNode *& List<T>::_index(unsigned index, ListNode *& root){
if (index == 0 || node == nullptr){
return node;
}
return _index(index - 1, root -> next);
}
63
64
65
66
67
68
69
70
71
72
73