valarray<T> shift(int n) const;
The member function returns an object of class valarray<T>, of length size(), each of whose elements I is either
(*this)[I + n], if I + n is a valid subscript, or T(). Thus, if element zero is taken as the leftmost element, a
positive value of n shifts the elements left n places, with zero fill.