Skip to content

Commit 3187371

Browse files
burblebeetkoeppe
authored andcommitted
LWG4179 Wrong range in [alg.search]
1 parent 05c2eb8 commit 3187371

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

source/algorithms.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4606,7 +4606,7 @@
46064606
\begin{itemdescr}
46074607
\pnum
46084608
\returns
4609-
The first iterator \tcode{i} in the range \range{first1}{last1 - (last2 - first2)}
4609+
The first iterator \tcode{i} in the range \crange{first1}{last1 - (last2 - first2)}
46104610
such that
46114611
for every non-negative integer \tcode{n} less than \tcode{last2 - first2}
46124612
the following corresponding conditions hold:
@@ -4644,7 +4644,7 @@
46444644
\item
46454645
\tcode{\{i, i + (last2 - first2)\}},
46464646
where \tcode{i} is
4647-
the first iterator in the range \range{first1}{last1 - (last2 - first2)}
4647+
the first iterator in the range \crange{first1}{last1 - (last2 - first2)}
46484648
such that
46494649
for every non-negative integer \tcode{n} less than \tcode{last2 - first2}
46504650
the condition
@@ -4705,7 +4705,7 @@
47054705

47064706
\pnum
47074707
\returns
4708-
The first iterator \tcode{i} in the range \range{first}{last - count}
4708+
The first iterator \tcode{i} in the range \crange{first}{last - count}
47094709
such that for every non-negative integer \tcode{n} less than \tcode{count}
47104710
the condition $E$ is \tcode{true}.
47114711
Returns \tcode{last} if no such iterator is found.
@@ -4736,7 +4736,7 @@
47364736
\pnum
47374737
\returns
47384738
\tcode{\{i, i + count\}}
4739-
where \tcode{i} is the first iterator in the range \range{first}{last - count}
4739+
where \tcode{i} is the first iterator in the range \crange{first}{last - count}
47404740
such that for every non-negative integer \tcode{n} less than \tcode{count},
47414741
the following condition holds:
47424742
\tcode{invoke(pred, invoke(proj, *(i + n)), value)}.

0 commit comments

Comments
 (0)