Skip to content

Commit 051e701

Browse files
jensmaurerzygoloid
authored andcommitted
[iterator.requirements.general] Consistently index iterator terms.
1 parent 2950e9f commit 051e701

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

source/iterators.tex

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -556,26 +556,22 @@
556556
\end{note}
557557

558558
\pnum
559+
\indextext{past-the-end iterator|see{iterator, past-the-end}}%
560+
\indextext{dereferenceable iterator|see{iterator, dereferenceable}}%
559561
Just as a regular pointer to an array guarantees that there is a pointer value pointing past the last element
560562
of the array, so for any iterator type there is an iterator value that points past the last element of a
561563
corresponding sequence.
562-
Such a value is called a \defnadj{past-the-end}{value}.
563-
Values of an iterator
564-
\tcode{i}
565-
for which the expression
566-
\tcode{*i}
567-
is defined are called
568-
\defn{dereferenceable}.
564+
Such a value is called a \defnx{past-the-end value}{iterator!past-the-end}.
565+
Values of an iterator \tcode{i}
566+
for which the expression \tcode{*i} is defined
567+
are called \defnx{dereferenceable}{iterator!dereferenceable}.
569568
The library never assumes that past-the-end values are dereferenceable.
570569
Iterators can also have singular values that are not associated with any
571570
sequence.
572571
\begin{example}
573-
After the declaration of an uninitialized pointer
574-
\tcode{x}
575-
(as with
576-
\tcode{int* x;}),
577-
\tcode{x}
578-
must always be assumed to have a singular value of a pointer.
572+
After the declaration of an uninitialized pointer \tcode{x}
573+
(as with \tcode{int* x;}),
574+
\tcode{x} must always be assumed to have a singular value of a pointer.
579575
\end{example}
580576
Results of most expressions are undefined for singular values;
581577
the only exceptions are destroying an iterator that holds a singular value,

0 commit comments

Comments
 (0)