[libcxx-commits] [libcxx] [libc++] P2389R2: `dextents` Index Type Parameter (PR #97393)
Damien L-G via libcxx-commits
libcxx-commits at lists.llvm.org
Wed Jul 3 19:41:09 PDT 2024
================
@@ -465,6 +465,12 @@ template <class... _IndexTypes>
explicit extents(_IndexTypes...) -> extents<size_t, size_t(((void)sizeof(_IndexTypes), dynamic_extent))...>;
# endif
+# if _LIBCPP_STD_VER >= 26
+// [mdspan.extents.dims], alias template `dims`
+template <size_t _Rank, class _IndexType = size_t>
+using dims = dextents<_IndexType, _Rank>;
+# endif
----------------
dalg24 wrote:
I would prefer if we moved it right after the definition of `dextents`, that is L457.
https://github.com/llvm/llvm-project/pull/97393
More information about the libcxx-commits
mailing list