Skip to content

Commit 3217a57

Browse files
committed
P3355R1 Fix submdspan for C++26
1 parent 1dabdd3 commit 3217a57

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

source/containers.tex

+13
Original file line numberDiff line numberDiff line change
@@ -24319,6 +24319,19 @@
2431924319
let \tcode{offset} be a value of type \tcode{size_t} equal to
2432024320
\tcode{(*this)(\exposid{first_}<index_type, P>(slices...)...)}.
2432124321

24322+
\pnum
24323+
Given a layout mapping type \tcode{M}, a type \tcode{S} is a
24324+
\defnadjx{unit-stride}{slice for \tcode{M}}{slice} if
24325+
\begin{itemize}
24326+
\item \tcode{S} is a specialization of \tcode{strided_slice}
24327+
where \tcode{S::stride_type} models \exposconcept{integral-constant-like}
24328+
and \tcode{S::stride_type::value} equals \tcode{1},
24329+
24330+
\item \tcode{S} models \tcode{\exposconcept{index-pair-like}<M::index_type>}, or
24331+
24332+
\item \tcode{is_convertible_v<S, full_extent_t>} is \tcode{true}.
24333+
\end{itemize}
24334+
2432224335
\rSec5[mdspan.sub.map.left]{\tcode{layout_left} specialization of \tcode{submdspan_mapping}}
2432324336

2432424337
\indexlibrarymemberexpos{layout_left::mapping}{submdspan-mapping-impl}%

source/support.tex

+1-1
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@
797797
#define @\defnlibxname{cpp_lib_string_resize_and_overwrite}@ 202110L // also in \libheader{string}
798798
#define @\defnlibxname{cpp_lib_string_udls}@ 201304L // also in \libheader{string}
799799
#define @\defnlibxname{cpp_lib_string_view}@ 202403L // also in \libheader{string}, \libheader{string_view}
800-
#define @\defnlibxname{cpp_lib_submdspan}@ 202403L // freestanding, also in \libheader{mdspan}
800+
#define @\defnlibxname{cpp_lib_submdspan}@ 202411L // freestanding, also in \libheader{mdspan}
801801
#define @\defnlibxname{cpp_lib_syncbuf}@ 201803L // also in \libheader{syncstream}
802802
#define @\defnlibxname{cpp_lib_text_encoding}@ 202306L // also in \libheader{text_encoding}
803803
#define @\defnlibxname{cpp_lib_three_way_comparison}@ 201907L // freestanding, also in \libheader{compare}

0 commit comments

Comments
 (0)