Page 2 of 2

Posted: Wed Sep 26, 2007 5:24 pm
by eboyd
thanx, i suppose that's what an iterator is, right? so is there an advantage to using iterator to perform such operations?

Posted: Wed Sep 26, 2007 11:22 pm
by Solar
eboyd wrote:so is there an advantage to using iterator to perform such operations?
Ehm... for example in those cases where you want something that looks like a pointer but actually is an object (for which you can overload operators)... i.e., in your very case.

Posted: Wed Sep 26, 2007 11:40 pm
by Candy
eboyd wrote:thanx, i suppose that's what an iterator is, right? so is there an advantage to using iterator to perform such operations?
Yes.