The example comes from the demonstration for use of std::slice and std::slice_array:
https://en.cppreference.com/w/cpp/numeric/valarray/slice
htt