Skip to content

Commit 1d87086

Browse files
committed
[alg.search] fixed search_n's Returns part
1 parent d2cc230 commit 1d87086

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/algorithms.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3998,7 +3998,8 @@
39983998
such that for every non-negative integer \tcode{n} less than \tcode{count}
39993999
the following corresponding conditions hold:
40004000
\tcode{*(i + n) == value, pred(*(i + n),value) != false}.
4001-
Returns \tcode{last} if no such iterator is found.
4001+
Returns \tcode{first} if \tcode{count <= 0},
4002+
otherwise returns \tcode{last} if no such iterator is found.
40024003

40034004
\pnum
40044005
\complexity

0 commit comments

Comments
 (0)