Getting a range over a const Container

Matthias Walter xammy at xammy.homelinux.net
Fri Jun 15 00:14:45 PDT 2012


Hi,

I have a const std.container object (e.g., a const(Array!int)) of which
I'd like to have a range which can traverse that container having
read-only access. This does not seem to be possible with opSlice(). Is
there an alternative?

Best regards,

Matthias


More information about the Digitalmars-d-learn mailing list