@@ -21542,20 +21542,21 @@
21542
21542
increase by increments of \tcode{stride}.
21543
21543
21544
21544
\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}
21557
21559
21558
- \begin{itemdescr}
21559
21560
\pnum
21560
21561
\tcode{strided_slice} has the data members and special members specified above.
21561
21562
It has no base classes or members other than those specified.
21570
21571
indicates the indices \tcode{1}, \tcode{4}, \tcode{7}, and \tcode{10}.
21571
21572
Indices are selected from the half-open interval \range{1}{1 + 10}.
21572
21573
\end{note}
21573
- \end{itemdescr}
21574
21574
21575
21575
\rSec4[mdspan.submdspan.submdspan.mapping.result]{\tcode{submdspan_mapping_result}}
21576
21576
@@ -21579,15 +21579,16 @@
21579
21579
are returned by overloads of \tcode{submdspan_mapping}.
21580
21580
21581
21581
\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}
21589
21591
21590
- \begin{itemdescr}
21591
21592
\pnum
21592
21593
\tcode{submdspan_mapping_result} has
21593
21594
the data members and special members specified above.
21596
21597
\pnum
21597
21598
\tcode{LayoutMapping} shall meet
21598
21599
the layout mapping requirements\iref{mdspan.layout.policy.reqmts}.
21599
- \end{itemdescr}
21600
21600
21601
21601
\rSec4[mdspan.submdspan.helpers]{Exposition-only helpers}
21602
21602
0 commit comments