writing iterators without code duplication. inout?

Trass3r un at known.com
Wed Dec 21 08:05:23 PST 2011


Can't really answer your original question, but
1. Why don't you use opApply?
2. Why do you use ref int even in the const version?
3. You could also use alias this to allow iteration, don't know if that's  
what you want in general though.


More information about the Digitalmars-d-learn mailing list