[libcxx-commits] [PATCH] D151267: mdspan: implement layout_right

Christian Trott via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue May 23 15:48:48 PDT 2023


crtrott created this revision.
crtrott added a reviewer: ldionne.
crtrott added a project: libc++.
Herald added a subscriber: arphaman.
Herald added a project: All.
crtrott requested review of this revision.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

This revision implements layout_right in support of C++23 mdspan (https://wg21.link/p0009).
layout_right is a layout mapping policy whose index mapping corresponds to the memory layout of multidimensional C-arrays, and is thus also referred to as the C-layout.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151267

Files:
  libcxx/docs/Status/Cxx23.rst
  libcxx/docs/Status/Cxx23Papers.csv
  libcxx/include/CMakeLists.txt
  libcxx/include/__mdspan/extents.h
  libcxx/include/__mdspan/layout_right_mapping.h
  libcxx/include/__mdspan/layouts.h
  libcxx/include/mdspan
  libcxx/include/module.modulemap.in
  libcxx/test/libcxx/private_headers.verify.cpp
  libcxx/test/std/containers/views/mdspan/layout_right/assert.conversion.pass.cpp
  libcxx/test/std/containers/views/mdspan/layout_right/assert.ctor_extents.pass.cpp
  libcxx/test/std/containers/views/mdspan/layout_right/assert.index_operator.pass.cpp
  libcxx/test/std/containers/views/mdspan/layout_right/assert.stride.pass.cpp
  libcxx/test/std/containers/views/mdspan/layout_right/comparison.pass.cpp
  libcxx/test/std/containers/views/mdspan/layout_right/conversion.pass.cpp
  libcxx/test/std/containers/views/mdspan/layout_right/ctor_default.pass.cpp
  libcxx/test/std/containers/views/mdspan/layout_right/ctor_extents.pass.cpp
  libcxx/test/std/containers/views/mdspan/layout_right/index_operator.pass.cpp
  libcxx/test/std/containers/views/mdspan/layout_right/properties.pass.cpp
  libcxx/test/std/containers/views/mdspan/layout_right/static_requirements.pass.cpp
  libcxx/test/std/containers/views/mdspan/layout_right/stride.pass.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151267.524919.patch
Type: text/x-patch
Size: 57340 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230523/14a6a8d6/attachment-0001.bin>


More information about the libcxx-commits mailing list