Returns a range that iterates over a wl_array.
wl_array arr; wl_array_init(&arr); foreach(i; 0..1342) { int *ptr = cast(int*)wl_array_add(&arr, int.sizeof); *ptr = i*12 - 15; } int ind=0; foreach(pi; wl_range!(int)(&arr)) { assert(*pi == ind++*12-15); } assert(ind==1342); wl_array_release(&arr);
See Implementation
Returns a range that iterates over a wl_array.