iteration is done when the iterator == end(), no need to have an internal flag.