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.
| std::slice::slice | ( | ) | [inline] |
| std::slice::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 std::slice::size | ( | ) | const [inline] |
| size_t std::slice::start | ( | ) | const [inline] |
| size_t std::slice::stride | ( | ) | const [inline] |
1.5.6