LinkedListIterator

LinkedListIterator - return currently->value; }...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
#include <iostream> #include "LinkedList.h" LinkedListIterator::LinkedListIterator(ListNode *start) { currently = start; } // LinkedListIterator& operator++(); // LinkedListIterator& operator++(int); currently = currently->next; return *this; }
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: return currently-&gt;value; } bool LinkedListIterator::operator==(const LinkedListIterator&amp; rhs) { return this-&gt;currently == rhs.currently; } bool LinkedListIterator::operator!=(const LinkedListIterator&amp; rhs) { return this-&gt;currently != rhs.currently; }...
View Full Document

Ask a homework question - tutors are online