]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Implement submdspan_extents. [PR110352]
authorLuc Grosheintz <luc.grosheintz@gmail.com>
Mon, 1 Dec 2025 08:41:38 +0000 (09:41 +0100)
committerTomasz Kamiński <tkaminsk@redhat.com>
Tue, 2 Dec 2025 14:40:59 +0000 (15:40 +0100)
commitc915bfc0f7d2e27b7ebc5bae1e30cdb1ae078255
treec984c10b653c8ce5b541f65d4bfe941f214a5d96
parentf6f9aec0c6aac9d274fec9bbcc3e8e0030418016
libstdc++: Implement submdspan_extents. [PR110352]

Implement submdspan_extents as described in P3663 and adds it to the std
module.

PR libstdc++/110352

libstdc++-v3/ChangeLog:

* include/std/mdspan (submdspan_extents): New function.
* src/c++23/std.cc.in: Add submdspan_extents.
* testsuite/23_containers/mdspan/int_like.h: Add StructuralInt.
* testsuite/23_containers/mdspan/submdspan/submdspan_extents.cc: New test.
* testsuite/23_containers/mdspan/submdspan/submdspan_extents_neg.cc: New test.

Reviewed-by: Tomasz Kamiński <tkaminsk@redhat.com>
Signed-off-by: Luc Grosheintz <luc.grosheintz@gmail.com>
libstdc++-v3/include/std/mdspan
libstdc++-v3/src/c++23/std.cc.in
libstdc++-v3/testsuite/23_containers/mdspan/int_like.h
libstdc++-v3/testsuite/23_containers/mdspan/submdspan/submdspan_extents.cc [new file with mode: 0644]
libstdc++-v3/testsuite/23_containers/mdspan/submdspan/submdspan_extents_neg.cc [new file with mode: 0644]