File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed
Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change 556556\end {note }
557557
558558\pnum
559+ \indextext {past-the-end iterator|see{iterator, past-the-end}}%
560+ \indextext {dereferenceable iterator|see{iterator, dereferenceable}}%
559561Just as a regular pointer to an array guarantees that there is a pointer value pointing past the last element
560562of the array, so for any iterator type there is an iterator value that points past the last element of a
561563corresponding 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}.
569568The library never assumes that past-the-end values are dereferenceable.
570569Iterators can also have singular values that are not associated with any
571570sequence.
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 }
580576Results of most expressions are undefined for singular values;
581577the only exceptions are destroying an iterator that holds a singular value,
You can’t perform that action at this time.
0 commit comments