[all-commits] [llvm/llvm-project] 20c6b9: [libc++][mdspan] Implement default_accessor

Christian Trott via All-commits all-commits at lists.llvm.org
Fri Jul 14 10:53:21 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 20c6b9d451ca9af8d23fa7bfa5e18565e761450a
      https://github.com/llvm/llvm-project/commit/20c6b9d451ca9af8d23fa7bfa5e18565e761450a
  Author: Christian Trott <crtrott at sandia.gov>
  Date:   2023-07-14 (Fri, 14 Jul 2023)

  Changed paths:
    M libcxx/docs/Status/Cxx23.rst
    M libcxx/include/CMakeLists.txt
    A libcxx/include/__mdspan/default_accessor.h
    M libcxx/include/mdspan
    M libcxx/include/module.modulemap.in
    M libcxx/modules/std/mdspan.cppm
    A libcxx/test/std/containers/views/mdspan/MinimalElementType.h
    A libcxx/test/std/containers/views/mdspan/default_accessor/access.pass.cpp
    A libcxx/test/std/containers/views/mdspan/default_accessor/ctor.conversion.pass.cpp
    A libcxx/test/std/containers/views/mdspan/default_accessor/ctor.default.pass.cpp
    A libcxx/test/std/containers/views/mdspan/default_accessor/element_type.verify.cpp
    A libcxx/test/std/containers/views/mdspan/default_accessor/offset.pass.cpp
    A libcxx/test/std/containers/views/mdspan/default_accessor/types.pass.cpp

  Log Message:
  -----------
  [libc++][mdspan] Implement default_accessor

This commit implements default_accessor in support of C++23 mdspan
(https://wg21.link/p0009). default_accessor is the trivial accessor
using plain pointers and reference to element types.

Co-authored-by: Damien L-G <dalg24 at gmail.com>

Differential Revision: https://reviews.llvm.org/D153935




More information about the All-commits mailing list