Skip to content

Commit 2c762d8

Browse files
jensmaurertkoeppe
authored andcommitted
LWG3543 Definition of when counted_iterators refer to the same sequence isn't quite right
1 parent 7828d1c commit 2c762d8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/iterators.tex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5180,9 +5180,10 @@
51805180
and
51815181
\tcode{counted_iterator<I2>}
51825182
refer to elements of the same sequence if and only if
5183-
\tcode{next(i1.base(), i1.count())}
5183+
there exists some integer $n$ such that
5184+
\tcode{next(i1.base(), i1.count() + $n$)}
51845185
and
5185-
\tcode{next(i2.base(), i2.count())}
5186+
\tcode{next(i2.base(), i2.count() + $n$)}
51865187
refer to the same (possibly past-the-end) element.
51875188

51885189
\indexlibraryglobal{counted_iterator}%

0 commit comments

Comments
 (0)