Skip to content

Commit 87d89ef

Browse files
committed
LWG4462 Algorithm requirements don't describe semantics of s - i well
Fixes US 154-252 (C++26 CD).
1 parent 5289650 commit 87d89ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

source/algorithms.tex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,9 @@
233233
\end{codeblock}
234234
For each iterator \tcode{i} and sentinel \tcode{s}
235235
produced from a range \tcode{r},
236-
the semantics of \tcode{s - i} has the same type, value, and value category
236+
the semantics of \tcode{s - i}
237+
are the same as those of an expression that
238+
has the same type, value, and value category
237239
as \tcode{ranges::distance(i, s)}.
238240
\begin{note}
239241
The implementation can use \tcode{ranges::distance(r)}

0 commit comments

Comments
 (0)