Parameters
- start
- Index of the first element in the slice.
The index of the first element in a valarray is 0, not 1.
size_t is an unsigned integral type. - length
- Number of elements in the slice.
size_t is an unsigned integral type. - stride
- Separation between the elements selected into the slice.
size_t is an unsigned integral type. - slc
- Slice object (copy constructor).
Example
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
Output:
2 6 10 |
See also
| slice::start | Return start of slice (public member function) |
| slice::size | Return size of slice (public member function) |
| slice::stride | Return stride of slice (public member function) |
