Skip to content

Commit 1051ee4

Browse files
burblebeetkoeppe
authored andcommitted
[mdspan.submdspan.*] Use \codeblocks instead of \itemdecl/descrs for definitions of structs strided_slice and submdspan_mapping_result
1 parent 08803e9 commit 1051ee4

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

source/containers.tex

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21542,20 +21542,21 @@
2154221542
increase by increments of \tcode{stride}.
2154321543

2154421544
\indexlibraryglobal{strided_slice}%
21545-
\begin{itemdecl}
21546-
template<class OffsetType, class ExtentType, class StrideType>
21547-
struct strided_slice {
21548-
using offset_type = OffsetType;
21549-
using extent_type = ExtentType;
21550-
using stride_type = StrideType;
21551-
21552-
[[no_unique_address]] OffsetType offset{};
21553-
[[no_unique_address]] ExtentType extent{};
21554-
[[no_unique_address]] StrideType stride{};
21555-
};
21556-
\end{itemdecl}
21545+
\begin{codeblock}
21546+
namespace std {
21547+
template<class OffsetType, class ExtentType, class StrideType>
21548+
struct strided_slice {
21549+
using offset_type = OffsetType;
21550+
using extent_type = ExtentType;
21551+
using stride_type = StrideType;
21552+
21553+
[[no_unique_address]] OffsetType offset{};
21554+
[[no_unique_address]] ExtentType extent{};
21555+
[[no_unique_address]] StrideType stride{};
21556+
};
21557+
}
21558+
\end{codeblock}
2155721559

21558-
\begin{itemdescr}
2155921560
\pnum
2156021561
\tcode{strided_slice} has the data members and special members specified above.
2156121562
It has no base classes or members other than those specified.
@@ -21570,7 +21571,6 @@
2157021571
indicates the indices \tcode{1}, \tcode{4}, \tcode{7}, and \tcode{10}.
2157121572
Indices are selected from the half-open interval \range{1}{1 + 10}.
2157221573
\end{note}
21573-
\end{itemdescr}
2157421574

2157521575
\rSec4[mdspan.submdspan.submdspan.mapping.result]{\tcode{submdspan_mapping_result}}
2157621576

@@ -21579,15 +21579,16 @@
2157921579
are returned by overloads of \tcode{submdspan_mapping}.
2158021580

2158121581
\indexlibraryglobal{submdspan_mapping_result}%
21582-
\begin{itemdecl}
21583-
template<class LayoutMapping>
21584-
struct submdspan_mapping_result {
21585-
[[no_unique_address]] LayoutMapping mapping = LayoutMapping();
21586-
size_t offset{};
21587-
};
21588-
\end{itemdecl}
21582+
\begin{codeblock}
21583+
namespace std {
21584+
template<class LayoutMapping>
21585+
struct submdspan_mapping_result {
21586+
[[no_unique_address]] LayoutMapping mapping = LayoutMapping();
21587+
size_t offset{};
21588+
};
21589+
}
21590+
\end{codeblock}
2158921591

21590-
\begin{itemdescr}
2159121592
\pnum
2159221593
\tcode{submdspan_mapping_result} has
2159321594
the data members and special members specified above.
@@ -21596,7 +21597,6 @@
2159621597
\pnum
2159721598
\tcode{LayoutMapping} shall meet
2159821599
the layout mapping requirements\iref{mdspan.layout.policy.reqmts}.
21599-
\end{itemdescr}
2160021600

2160121601
\rSec4[mdspan.submdspan.helpers]{Exposition-only helpers}
2160221602

0 commit comments

Comments
 (0)