Replaces v2: https://gcc.gnu.org/pipermail/libstdc++/2025-July/062712.html
This iteration rebases on top of v3 of the std::dims patch; and makes several small changes to the test code. Luc Grosheintz (3): libstdc++: Implement is_sufficiently_aligned [PR120994] libstdc++: Prepare test code for default_accessor for reuse. libstdc++: Implement aligned_accessor from mdspan [PR120994] libstdc++-v3/include/bits/align.h | 16 ++ libstdc++-v3/include/bits/version.def | 18 +++ libstdc++-v3/include/bits/version.h | 20 +++ libstdc++-v3/include/std/mdspan | 68 ++++++++ libstdc++-v3/include/std/memory | 1 + libstdc++-v3/src/c++23/std.cc.in | 10 +- .../20_util/headers/memory/version.cc | 5 + .../20_util/is_sufficiently_aligned/1.cc | 31 ++++ .../23_containers/mdspan/accessors/aligned.cc | 43 +++++ .../mdspan/accessors/aligned_neg.cc | 33 ++++ .../accessors/debug/aligned_access_neg.cc | 23 +++ .../accessors/debug/aligned_offset_neg.cc | 23 +++ .../23_containers/mdspan/accessors/default.cc | 99 ------------ .../23_containers/mdspan/accessors/generic.cc | 148 ++++++++++++++++++ .../testsuite/23_containers/mdspan/version.cc | 8 + 15 files changed, 444 insertions(+), 102 deletions(-) create mode 100644 libstdc++-v3/testsuite/20_util/is_sufficiently_aligned/1.cc create mode 100644 libstdc++-v3/testsuite/23_containers/mdspan/accessors/aligned.cc create mode 100644 libstdc++-v3/testsuite/23_containers/mdspan/accessors/aligned_neg.cc create mode 100644 libstdc++-v3/testsuite/23_containers/mdspan/accessors/debug/aligned_access_neg.cc create mode 100644 libstdc++-v3/testsuite/23_containers/mdspan/accessors/debug/aligned_offset_neg.cc delete mode 100644 libstdc++-v3/testsuite/23_containers/mdspan/accessors/default.cc create mode 100644 libstdc++-v3/testsuite/23_containers/mdspan/accessors/generic.cc -- 2.50.0