[class.gslice.overview] (original) (raw)

[Example 1:

Thegslicespecificationstart = 3length = {2, 4, 3}stride = {19, 4, 1} yields the sequence of one-dimensional indices
which are ordered as shown in the following table:

    (0,  0,  0,   3),    
    (0,  0,  1,   4),    
    (0,  0,  2,   5),    
    (0,  1,  0,   7),    
    (0,  1,  1,   8),    
    (0,  1,  2,   9),    
    (0,  2,  0,  11), 
    (0,  2,  1,  12), 
    (0,  2,  2,  13), 
    (0,  3,  0,  15), 
    (0,  3,  1,  16), 
    (0,  3,  2,  17), 
    (1,  0,  0,  22), 
    (1,  0,  1,  23), 
    …      
    (1,  3,  2,  36)

That is, the highest-ordered index turns fastest.

— _end example_]