Skip to content

Commit 2c7e87d

Browse files
authored
[mdspan.layout.left.cons] extents() should be other.extents() (cplusplus#6069)
The precondition was erroneously referring to the not yet constructed extents instead of other.extents(). Note that the extents of the to be constructed layout will be initialized with other.extents - i.e. after construction they will return the same value for the fwd-prod-of-extents etc.
1 parent a0403a9 commit 2c7e87d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/containers.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19442,7 +19442,7 @@
1944219442
If \tcode{extents_type::rank() > 0} is \tcode{true},
1944319443
then for all $r$ in the range $[0, \tcode{extents_type::rank()})$,
1944419444
\tcode{other.stride($r$)} equals
19445-
\tcode{extents().\exposid{fwd-prod-of-extents}($r$)}, and
19445+
\tcode{other.extents().\exposid{fwd-prod-of-extents}($r$)}, and
1944619446
\item
1944719447
\tcode{other.required_span_size()} is representable as
1944819448
a value of type \tcode{index_type}\iref{basic.fundamental}.
@@ -19700,7 +19700,7 @@
1970019700
If \tcode{extents_type::rank() > 0} is \tcode{true},
1970119701
then for all $r$ in the range $[0, \tcode{extents_type::rank()})$,
1970219702
\tcode{other.stride($r$)} equals
19703-
\tcode{extents().\exposid{rev-prod-of-extents}($r$)}.
19703+
\tcode{other.extents().\exposid{rev-prod-of-extents}($r$)}.
1970419704
\item
1970519705
\tcode{other.required_span_size()} is representable as
1970619706
a value of type \tcode{index_type}\iref{basic.fundamental}.

0 commit comments

Comments
 (0)