Automatic range creation for class or struct?

Peka via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Feb 9 16:05:36 PST 2016


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.)



More information about the Digitalmars-d-learn mailing list