libstdc++: questions about P3663

Tomasz Kaminski tkaminsk@redhat.com
Wed Nov 12 08:06:09 GMT 2025


On Mon, Nov 10, 2025 at 2:31 PM Luc Grosheintz <luc.grosheintz@gmail.com>
wrote:

> Dear libstdc++ devs,
>
> One more :)
>
> The clause (8.4.6) reads:
>
>      > A type S is a collapsing slice type if it is neither
>      full_extent_t nor a specialization of strided_slice.
>
>      [Note 1: Each collapsing slice type in submdspan_mapping’s parameter
>      pack of slice specifier types reduces the rank of the result of
>      submdspan_mapping by one. — end note]
>
> To me it's not clear that in this context `S` is restricted to
> canonical slice types only. Therefore pair<int, int> is a collapsing
> slice type. I'm aware that it's not ever used with non-canonical
> slices types; but since it's hard for me to say if it's intentional
> or an oversight, I thought it best to mention it.
>
The definition are only introduced to serve the later wording, if we reffer
to collapsing
slice in the context where the slice types are not already canonical, then
we have real issue.
If not, this is OK.

>
> Kind regards,
> Luc
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20251112/546a977e/attachment.htm>


More information about the Libstdc++ mailing list