Advertisement
clairec

Untitled

Sep 24th, 2016
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. template <typename T>
  2. ~SLL()
  3. { /* Delete every node in the list, starting at the front */
  4.   Node<T>* i = this->front;
  5.   while (i != nullptr)
  6.     {
  7.       Node<T>* target = i;
  8.       i = i->getNext();
  9.       delete target;
  10.     }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement