writing iterators without code duplication. inout?

Jakob Ovrum jakobovrum at gmail.com
Wed Dec 21 08:31:00 PST 2011


On Wednesday, 21 December 2011 at 16:07:55 UTC, Timon Gehr wrote:
> Just remove the non-const overload. const member functions work 
> with mutable, immutable and const receivers.

The const version does not allow using 'ref' when iterating.


More information about the Digitalmars-d-learn mailing list