previous | start | next

## Implementing Linked Lists (Implementing Iterators)

- Iterators are created by the begin and end functions of the List class.

  >     Iterator List::begin()
  >     {
  >        Iterator iter;
  >        iter.position = first;
  >        iter.last = last;
  >        return iter;
  >     }

  >     Iterator List::end()
  >     {
  >        Iterator iter;
  >        iter.position = NULL;
  >        iter.last = last;
  >        return iter;
  >     }

previous | start | next