Skip to content

Commit da76f01

Browse files
authored
Merge 2023-02 LWG Motion 20
P2763R1 layout_stride static extents default constructor fix
2 parents e8a9120 + 020ddcd commit da76f01

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
@@ -19819,7 +19819,7 @@
1981919819

1982019820
public:
1982119821
// \ref{mdspan.layout.stride.cons}, constructors
19822-
constexpr mapping() noexcept = default;
19822+
constexpr mapping() noexcept;
1982319823
constexpr mapping(const mapping&) noexcept = default;
1982419824
template<class OtherIndexType>
1982519825
constexpr mapping(const extents_type&, span<OtherIndexType, @\exposid{rank_}@>) noexcept;
@@ -19937,6 +19937,25 @@
1993719937

1993819938
\rSec5[mdspan.layout.stride.cons]{Constructors}
1993919939

19940+
\indexlibraryctor{layout_stride::mapping}%
19941+
\begin{itemdecl}
19942+
constexpr mapping() noexcept;
19943+
\end{itemdecl}
19944+
19945+
\begin{itemdescr}
19946+
\pnum
19947+
\expects
19948+
\tcode{layout_right::mapping<extents_type>().required_span_size()}
19949+
is representable as a value of type \tcode{index_type}\iref{basic.fundamental}.
19950+
19951+
\pnum
19952+
\effects
19953+
Direct-non-list-initializes \exposid{extents_} with \tcode{extents_type()}, and
19954+
for all $d$ in the range \range{0}{\exposid{rank_}},
19955+
direct-non-list-initializes \tcode{\exposid{strides_}[$d$]} with
19956+
\tcode{layout_right::mapping<extents_type>().stride($d$)}.
19957+
\end{itemdescr}
19958+
1994019959
\indexlibraryctor{layout_stride::mapping}%
1994119960
\begin{itemdecl}
1994219961
template<class OtherIndexType>

0 commit comments

Comments
 (0)