string Iterator::operator*() const
{
assert(position != NULL);
return position->data;
}
bool Iterator::operator==(Iterator b) const
{
return position == b.position;
}
void Iterator::operator++(int dummy) const
{
assert(position != NULL);
return = position->next;
}
bool Iterator::operator!=(Iterator b) const
{
return !(*this == b); // calls operator ==
}