Skip to content

Commit 6e67832

Browse files
committed
P2763R1 layout_stride static extents default constructor fix
1 parent 9ce105b commit 6e67832

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

source/containers.tex

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19586,7 +19586,7 @@
1958619586

1958719587
public:
1958819588
// \ref{mdspan.layout.stride.cons}, constructors
19589-
constexpr mapping() noexcept = default;
19589+
constexpr mapping() noexcept;
1959019590
constexpr mapping(const mapping&) noexcept = default;
1959119591
template<class OtherIndexType>
1959219592
constexpr mapping(const extents_type&, span<OtherIndexType, @\exposid{rank_}@>) noexcept;
@@ -19698,6 +19698,25 @@
1969819698

1969919699
\rSec5[mdspan.layout.stride.cons]{Constructors}
1970019700

19701+
\indexlibraryctor{layout_stride::mapping}%
19702+
\begin{itemdecl}
19703+
constexpr mapping() noexcept;
19704+
\end{itemdecl}
19705+
19706+
\begin{itemdescr}
19707+
\pnum
19708+
\expects
19709+
\tcode{layout_right::mapping<extents_type>().required_span_size()}
19710+
is representable as a value of type \tcode{index_type}\iref{basic.fundamental}.
19711+
19712+
\pnum
19713+
\effects
19714+
Direct-non-list-initializes \exposid{extents_} with \tcode{extents_type()}, and
19715+
for all $d$ in the range $[0, \exposid{rank_})$,
19716+
direct-non-list-initializes \tcode{\exposid{strides_}[$d$]} with
19717+
\tcode{layout_right::mapping<extents_type>().stride($d$)}.
19718+
\end{itemdescr}
19719+
1970119720
\indexlibraryctor{layout_stride::mapping}%
1970219721
\begin{itemdecl}
1970319722
template<class OtherIndexType>

0 commit comments

Comments
 (0)