Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- template <typename T>
- ~SLL()
- { /* Delete every node in the list, starting at the front */
- Node<T>* i = this->front;
- while (i != nullptr)
- {
- Node<T>* target = i;
- i = i->getNext();
- delete target;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement