Skip to content

Commit e547237

Browse files
committed
P2389R2 dextents Index Type Parameter
1 parent 6d67d20 commit e547237

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

source/containers.tex

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19056,6 +19056,10 @@
1905619056
template<class IndexType, size_t Rank>
1905719057
using dextents = @\seebelow@;
1905819058

19059+
// \ref{mdspan.extents.dims}, alias template \tcode{dims}
19060+
template<size_t Rank, class IndexType = size_t>
19061+
using dims = @\seebelow@;
19062+
1905919063
// \ref{mdspan.layout}, layout mapping
1906019064
struct layout_left;
1906119065
struct layout_right;
@@ -19514,6 +19518,22 @@
1951419518
\tcode{E::index_type} denotes \tcode{IndexType}.
1951519519
\end{itemdescr}
1951619520

19521+
\rSec4[mdspan.extents.dims]{Alias template \tcode{dims}}
19522+
19523+
\indexlibraryglobal{dims}%
19524+
\begin{itemdecl}
19525+
template<size_t Rank, class IndexType = size_t>
19526+
using dims = @\seebelow@;
19527+
\end{itemdecl}
19528+
19529+
\begin{itemdescr}
19530+
\pnum
19531+
\result
19532+
A type \tcode{E} that is a specialization of \tcode{extents}
19533+
such that \tcode{E::rank() == Rank \&\& E::rank() == E::rank_dynamic()} is \tcode{true}, and
19534+
\tcode{E::index_type} denotes \tcode{IndexType}.
19535+
\end{itemdescr}
19536+
1951719537
\rSec3[mdspan.layout]{Layout mapping}
1951819538

1951919539
\rSec4[mdspan.layout.general]{General}

source/support.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@
712712
#define @\defnlibxname{cpp_lib_map_try_emplace}@ 201411L // also in \libheader{map}
713713
#define @\defnlibxname{cpp_lib_math_constants}@ 201907L // also in \libheader{numbers}
714714
#define @\defnlibxname{cpp_lib_math_special_functions}@ 201603L // also in \libheader{cmath}
715-
#define @\defnlibxname{cpp_lib_mdspan}@ 202207L // also in \libheader{mdspan}
715+
#define @\defnlibxname{cpp_lib_mdspan}@ 202406L // also in \libheader{mdspan}
716716
#define @\defnlibxname{cpp_lib_memory_resource}@ 201603L // also in \libheader{memory_resource}
717717
#define @\defnlibxname{cpp_lib_modules}@ 202207L // freestanding
718718
#define @\defnlibxname{cpp_lib_move_iterator_concept}@ 202207L // freestanding, also in \libheader{iterator}

0 commit comments

Comments
 (0)