.TH "std::slice" 3cxx "Sun Jan 10 2021" "libstdc++" \" -*- nroff -*- .ad l .nh .SH NAME std::slice \- Class defining one-dimensional subset of an array\&. .SH SYNOPSIS .br .PP .SS "Public Member Functions" .in +1c .ti -1c .RI "\fBslice\fP ()" .br .RI "Construct an empty slice\&. " .ti -1c .RI "\fBslice\fP (size_t __o, size_t __d, size_t __s)" .br .RI "Construct a slice\&. " .ti -1c .RI "size_t \fBsize\fP () const" .br .RI "Return size of slice\&. " .ti -1c .RI "size_t \fBstart\fP () const" .br .RI "Return array offset of first slice element\&. " .ti -1c .RI "size_t \fBstride\fP () const" .br .RI "Return array stride of slice\&. " .in -1c .SH "Detailed Description" .PP Class defining one-dimensional subset of an array\&. The slice class represents a one-dimensional subset of an array, specified by three parameters: start offset, size, and stride\&. The start offset is the index of the first element of the array that is part of the subset\&. The size is the total number of elements in the subset\&. Stride is the distance between each successive array element to include in the subset\&. .PP 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\&. .PP Definition at line 59 of file slice_array\&.h\&. .SH "Author" .PP Generated automatically by Doxygen for libstdc++ from the source code\&.