Automatic range creation for class or struct?
Jesse Phillips via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Feb 10 15:03:54 PST 2016
On Wednesday, 10 February 2016 at 00:05:36 UTC, Peka wrote:
> Hi!
>
> I have class (or struct) which realises .length() and
> .opIndex(size_t) methods.
>
> It is possible to create from this class some sort of range
> using template from std? (I mean that internal counter,
> .popFront(), .empty() etc methods should be added by template.)
See: https://issues.dlang.org/show_bug.cgi?id=5351
More information about the Digitalmars-d-learn
mailing list