Skip to content

Commit 9cd0182

Browse files
committed
[span.cons] Fix typos in P1394R4.
Do not attempt to initialize size_ with an iterator. Properly use sized_sentinel_for<End, It>.
1 parent 25c129b commit 9cd0182

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/containers.tex

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10709,7 +10709,7 @@
1070910709
\pnum
1071010710
\effects
1071110711
Initializes \tcode{data_} with \tcode{to_address(first)} and
10712-
\tcode{size_} with \tcode{first + count}.
10712+
\tcode{size_} with \tcode{count}.
1071310713

1071410714
\pnum
1071510715
\throws
@@ -10734,7 +10734,7 @@
1073410734
of the iterator reference type to \tcode{element_type}.
1073510735
\end{note}
1073610736
\item \tcode{It} satisfies \libconcept{contiguous_iterator}.
10737-
\item \tcode{End} satisfies \tcode{\libconcept{sized_sentinel_for}<It>}.
10737+
\item \tcode{End} satisfies \tcode{\libconcept{sized_sentinel_for}<End, It>}.
1073810738
\item \tcode{is_convertible_v<End, size_t>} is \tcode{false}.
1073910739
\end{itemize}
1074010740

@@ -10745,7 +10745,7 @@
1074510745
then \tcode{last - first} is equal to \tcode{extent}.
1074610746
\item \range{first}{last} is a valid range.
1074710747
\item \tcode{It} models \libconcept{contiguous_iterator}.
10748-
\item \tcode{End} models \tcode{\libconcept{sized_sentinel_for}<It>}.
10748+
\item \tcode{End} models \tcode{\libconcept{sized_sentinel_for}<End, It>}.
1074910749
\end{itemize}
1075010750

1075110751
\pnum

0 commit comments

Comments
 (0)