contiguous ranges

via Digitalmars-d digitalmars-d at puremagic.com
Fri Feb 20 13:08:06 PST 2015


On Friday, 20 February 2015 at 19:47:24 UTC, Pasqui23 wrote:
> You could have the best of both worlds this way:
>   R declaw_filter3(R)(R r)if(is(R:float[stride][],size_t 
> stride))
> and write
>   ac.declaw_filter3.play;

Stride is tied to alignment and not value type size in the 
general case (float being a special case), so stride should be in 
bytes...


More information about the Digitalmars-d mailing list