contiguous ranges

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


On Thursday, 19 February 2015 at 23:11:16 UTC, Pasqui23 wrote:
> On Thursday, 19 February 2015 at 19:32:26 UTC, Andrei 
> Alexandrescu wrote:
>>
>> I don't see a need for contiguous ranges if the only 
>> embodiment is T[]. -- Andrei
> Yeah,but it could be useful to access where  the range is 
> located

So that you can assess whether "a pointer" (iterator) is in a 
range on or not at O(1)? Seems there is a different between:

1. uniform spacing
2. with strides or not
3. dense packing (plain array)


More information about the Digitalmars-d mailing list