ivl 679
|
A slice. More...
#include <slice.hpp>
Public Member Functions | |
Constructors | |
slice () | |
Default constructor. | |
slice (size_t st, size_t len, ptrdiff_t str) | |
construct slice from starting offset, length, and stride | |
slice (range< size_t > ra) | |
construct slice from size_range | |
Public Attributes | |
size_t | length |
the number of elements | |
size_t | start |
the starting offset | |
ptrdiff_t | stride |
the distance between elements |
A slice.
This class has the same members with the class range (with different names), and it is used to define a slice in an array. It's main purpose of existence if to be inherited by slice_array which associates slices with arrays.