Skip to content

Commit f73990e

Browse files
jensmaurertkoeppe
authored andcommitted
[iterator.requirements.general] Fix indexing around 'valid range'.
1 parent 60b5098 commit f73990e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/iterators.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -609,7 +609,7 @@
609609
A sentinel \tcode{s} is called \defn{reachable from} an iterator \tcode{i} if
610610
and only if there is a finite sequence of applications of the expression
611611
\tcode{++i} that makes \tcode{i == s}. If \tcode{s} is reachable from \tcode{i},
612-
\range{i}{s} denotes a valid range.
612+
\range{i}{s} denotes a \defnadj{valid}{range}.
613613

614614
\pnum
615615
A \defnadj{counted}{range} \countedrange{i}{n} is empty if \tcode{n == 0};
@@ -618,7 +618,7 @@
618618
starting with the element pointed to by \tcode{i} and up to but not including
619619
the element, if any, pointed to by
620620
the result of \tcode{n} applications of \tcode{++i}.
621-
A counted range \countedrange{i}{n} is valid if and only if \tcode{n == 0};
621+
A counted range \countedrange{i}{n} is \defnx{valid}{range!counted!valid} if and only if \tcode{n == 0};
622622
or \tcode{n} is positive, \tcode{i} is dereferenceable,
623623
and \countedrange{++i}{--n} is valid.
624624

0 commit comments

Comments
 (0)