|
3 | 3 |
|
4 | 4 | <issue num="3178" status="Resolved"> |
5 | 5 | <title><tt>std::mismatch</tt> is missing an upper bound</title> |
6 | | -<section><sref ref="[mismatch]"/></section> |
| 6 | +<section><sref ref="[alg.mismatch]"/></section> |
7 | 7 | <submitter>Geoffrey Romer</submitter> |
8 | 8 | <date>20 Dec 2018</date> |
9 | 9 | <priority>0</priority> |
@@ -31,7 +31,7 @@ fundamental convention that STL algorithms operate on user-supplied ranges, not |
31 | 31 | <note>2019-01-26 Priority to 0 and Status to Tentatively Ready after discussions on the reflector</note> |
32 | 32 | <p> |
33 | 33 | During that reflector discussion several contributers argued in favour for changing the current wording in |
34 | | -<sref ref="[mismatch]"/> p3 from "smallest integer" to "smallest <ins>nonnegative</ins> integer". This minor |
| 34 | +<sref ref="[mismatch]"/> p3 from "smallest integer" to "smallest <ins>nonnegative</ins> integer". This minor |
35 | 35 | wording delta has also been added to the original proposed wording. |
36 | 36 | </p> |
37 | 37 |
|
@@ -79,8 +79,8 @@ both parameters <tt>pred</tt> and <tt>proj1</tt>.</p></li> |
79 | 79 | </ol> |
80 | 80 | <ins>-?- Let <tt><i>N</i></tt> be <tt>min(last1 - first1, last2 - first2)</tt>.</ins> |
81 | 81 | <p/> |
82 | | --3- <i>Returns:</i> <tt>{ first1 + n, first2 + n }</tt>, where <tt>n</tt> is the smallest <ins>nonnegative</ins> integer such |
83 | | -that <tt><i>E</i></tt> holds, or <tt><del>min(last1 - first1, last2 - first2)</del><ins><i>N</i></ins></tt> if no such integer |
| 82 | +-3- <i>Returns:</i> <tt>{ first1 + n, first2 + n }</tt>, where <tt>n</tt> is the smallest <ins>nonnegative</ins> integer such |
| 83 | +that <tt><i>E</i></tt> holds, or <tt><del>min(last1 - first1, last2 - first2)</del><ins><i>N</i></ins></tt> if no such integer |
84 | 84 | <ins>less than <tt><i>N</i></tt></ins> exists. |
85 | 85 | <p/> |
86 | 86 | -4- <i>Complexity:</i> At most <tt><del>min(last1 - first1, last2 - first2)</del><ins><i>N</i></ins></tt> applications of the |
|
0 commit comments