For example, with an array of size 10, and a slice with offset 1, size 3 and stride 2, the subset consists of array elements 1, 3, and 5.
Definition at line 58 of file slice_array.h.
slice | ( | ) | [inline] |
slice | ( | size_t | __o, | |
size_t | __d, | |||
size_t | __s | |||
) | [inline] |
Construct a slice.
o | Offset in array of first element. | |
d | Number of elements in slice. | |
s | Stride between array elements. |
Definition at line 92 of file slice_array.h.
size_t size | ( | ) | const [inline] |
size_t start | ( | ) | const [inline] |
size_t stride | ( | ) | const [inline] |