Skip to content

Commit

Permalink
Merge 2024-06 LWG Motion 3
Browse files Browse the repository at this point in the history
P2389R2 dextents Index Type Parameter
  • Loading branch information
tkoeppe authored Jul 12, 2024
2 parents 4be90c8 + f367a11 commit 7c3f1a3
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions source/containers.tex
Original file line number Diff line number Diff line change
Expand Up @@ -19056,6 +19056,10 @@
template<class IndexType, size_t Rank>
using dextents = @\seebelow@;

// \ref{mdspan.extents.dims}, alias template \tcode{dims}
template<size_t Rank, class IndexType = size_t>
using dims = @\seebelow@;

// \ref{mdspan.layout}, layout mapping
struct layout_left;
struct layout_right;
Expand Down Expand Up @@ -19514,6 +19518,22 @@
\tcode{E::index_type} denotes \tcode{IndexType}.
\end{itemdescr}

\rSec4[mdspan.extents.dims]{Alias template \tcode{dims}}

\indexlibraryglobal{dims}%
\begin{itemdecl}
template<size_t Rank, class IndexType = size_t>
using dims = @\seebelow@;
\end{itemdecl}

\begin{itemdescr}
\pnum
\result
A type \tcode{E} that is a specialization of \tcode{extents}
such that \tcode{E::rank() == Rank \&\& E::rank() == E::rank_dynamic()} is \tcode{true}, and
\tcode{E::index_type} denotes \tcode{IndexType}.
\end{itemdescr}

\rSec3[mdspan.layout]{Layout mapping}

\rSec4[mdspan.layout.general]{General}
Expand Down
2 changes: 1 addition & 1 deletion source/support.tex
Original file line number Diff line number Diff line change
Expand Up @@ -713,7 +713,7 @@
#define @\defnlibxname{cpp_lib_map_try_emplace}@ 201411L // also in \libheader{map}
#define @\defnlibxname{cpp_lib_math_constants}@ 201907L // also in \libheader{numbers}
#define @\defnlibxname{cpp_lib_math_special_functions}@ 201603L // also in \libheader{cmath}
#define @\defnlibxname{cpp_lib_mdspan}@ 202207L // also in \libheader{mdspan}
#define @\defnlibxname{cpp_lib_mdspan}@ 202406L // also in \libheader{mdspan}
#define @\defnlibxname{cpp_lib_memory_resource}@ 201603L // also in \libheader{memory_resource}
#define @\defnlibxname{cpp_lib_modules}@ 202207L // freestanding
#define @\defnlibxname{cpp_lib_move_iterator_concept}@ 202207L // freestanding, also in \libheader{iterator}
Expand Down

0 comments on commit 7c3f1a3

Please sign in to comment.