P3959R0 — Let layout_stride::mapping with zero extent(s) accept zero strides
Mark Hoemmen, Jacob Faibussowitsch, Christian Trott
LEWG
We propose to change `layout_stride::mapping`’s constructors to permit strides to be zero if one or more extents are zero. For example, for extents (3, 5, 0, 11), this change would permit any nonnegative strides. Currently, users would need to set the stride(s) corresponding to zero extents to an arbitrary positive value, such as 1. That would make the strides (1, 3, 1, 105) in this example.