contiguous ranges

via Digitalmars-d digitalmars-d at puremagic.com
Fri Feb 20 00:45:21 PST 2015


On Friday, 20 February 2015 at 08:22:38 UTC, John Colvin wrote:
> Maybe I'm missing something, but I don't see anything here that 
> isn't already covered by built-in slices, opSlice, 
> opSliceAssign and put.

That's the wrong direction. What you want is a means to query a 
unknown container for it's properties so that you can bypass 
builtin operators:

1. by comparing addresses of elements and be able to assume 
strict order as you progress

2. by assessing compile time uniformity in distribution so that 
you can iterate using SIMD.



More information about the Digitalmars-d mailing list