tcak:

I am planning to implement "Iterator" class. But looking at "foreach" statement, it takes a range only.

Unless you are just experimenting, it's better to not go against a language and its std lib.

Bye,
bearophile

Reply via email to