17.6.1 Example: Implementing Iterator Operators (cont.)

bool Iterator::operator==(const Iterator& b) const
{
   return position == b.position;
}

bool Iterator::operator!=(const Iterator& b) const
{
   return position != b.position;
}

prev |top |next