Recall Iterator, defined on our List of strings. We can now overload the standard operators:
Iterator& Iterator::operator++(int)
{
position = position->next;
return *this;
}
string Iterator::operator*() const
{
assert(position != NULL);
return position->data;
}