Skip to content

Commit 2fa7a59

Browse files
burblebeetkoeppe
authored andcommitted
LWG3876 Default constructor of std::layout_XX::mapping misses precondition
1 parent 17630da commit 2fa7a59

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

source/containers.tex

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19315,6 +19315,12 @@
1931519315
\tcode{layout_left::mapping<E>} is a trivially copyable type
1931619316
that models \libconcept{regular} for each \tcode{E}.
1931719317

19318+
\pnum
19319+
\mandates
19320+
If \tcode{Extents::rank_dynamic() == 0} is \tcode{true},
19321+
then the size of the multidimensional index space \tcode{Extents()}
19322+
is representable as a value of type \tcode{typename Extents::index_type}.
19323+
1931819324
\rSec5[mdspan.layout.left.cons]{Constructors}
1931919325

1932019326
\indexlibraryctor{layout_left::mapping}%
@@ -19567,6 +19573,12 @@
1956719573
\tcode{layout_right::mapping<E>} is a trivially copyable type
1956819574
that models \libconcept{regular} for each \tcode{E}.
1956919575

19576+
\pnum
19577+
\mandates
19578+
If \tcode{Extents::rank_dynamic() == 0} is \tcode{true},
19579+
then the size of the multidimensional index space \tcode{Extents()}
19580+
is representable as a value of type \tcode{typename Extents::index_type}.
19581+
1957019582
\rSec5[mdspan.layout.right.cons]{Constructors}
1957119583

1957219584
\indexlibraryctor{layout_right::mapping}%
@@ -19821,6 +19833,12 @@
1982119833
\tcode{layout_stride::mapping<E>} is a trivially copyable type
1982219834
that models \libconcept{regular} for each \tcode{E}.
1982319835

19836+
\pnum
19837+
\mandates
19838+
If \tcode{Extents::rank_dynamic() == 0} is \tcode{true},
19839+
then the size of the multidimensional index space \tcode{Extents()}
19840+
is representable as a value of type \tcode{typename Extents::index_type}.
19841+
1982419842
\rSec5[mdspan.layout.stride.expo]{Exposition-only helpers}
1982519843

1982619844
\pnum

0 commit comments

Comments
 (0)