Question: what is gslice in c++?
Answer: std::gslice class gslice; Valarray generalized slice selector. This class represents a valarray generalized slice selector (a multidimensional slice). It does not contain nor refers to any element - it only describes a selection of elements to be used as an index in valarray::operator[] .