Skip to content

Commit c78c224

Browse files
jensmaurerzygoloid
authored andcommitted
[iterators] Improve indexing of defined terms.
1 parent 4bec847 commit c78c224

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

source/iterators.tex

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@
471471
resulting in a value of some object type
472472
\tcode{T},
473473
called the
474-
\term{value type}
474+
\defn{value type}
475475
of the iterator.
476476
An output iterator \tcode{i} has a non-empty set of types that are
477477
\libconcept{indirectly_writable} to the iterator;
@@ -480,7 +480,7 @@
480480
For every iterator type
481481
\tcode{X},
482482
there is a corresponding signed integer-like type\iref{iterator.concept.winc} called the
483-
\term{difference type}
483+
\defn{difference type}
484484
of the iterator.
485485

486486
\pnum
@@ -559,15 +559,13 @@
559559
Just as a regular pointer to an array guarantees that there is a pointer value pointing past the last element
560560
of the array, so for any iterator type there is an iterator value that points past the last element of a
561561
corresponding sequence.
562-
These values are called
563-
\term{past-the-end}
564-
values.
562+
Such a value is called a \defnadj{past-the-end}{value}.
565563
Values of an iterator
566564
\tcode{i}
567565
for which the expression
568566
\tcode{*i}
569567
is defined are called
570-
\term{dereferenceable}.
568+
\defn{dereferenceable}.
571569
The library never assumes that past-the-end values are dereferenceable.
572570
Iterators can also have singular values that are not associated with any
573571
sequence.
@@ -597,7 +595,7 @@
597595

598596
\pnum
599597
Most of the library's algorithmic templates that operate on data structures have
600-
interfaces that use ranges. A \term{range} is an iterator and a \term{sentinel}
598+
interfaces that use ranges. A \defn{range} is an iterator and a \defn{sentinel}
601599
that designate the beginning and end of the computation, or an iterator and a
602600
count that designate the beginning and the number of elements to which the
603601
computation is to be applied.\footnote{The sentinel denoting the end of a range
@@ -647,9 +645,8 @@
647645
previously obtained from that iterator.
648646

649647
\pnum
650-
An
651-
\term{invalid}
652-
iterator is an iterator that may be singular.\footnote{This definition applies to pointers, since pointers are iterators.
648+
An \defnadj{invalid}{iterator}
649+
is an iterator that may be singular.\footnote{This definition applies to pointers, since pointers are iterators.
653650
The effect of dereferencing an iterator that has been invalidated
654651
is undefined.
655652
}
@@ -1417,7 +1414,7 @@
14171414

14181415
\pnum
14191416
Let \tcode{i} be an object of type \tcode{I}. When \tcode{i} is in the domain of
1420-
both pre- and post-increment, \tcode{i} is said to be \term{incrementable}.
1417+
both pre- and post-increment, \tcode{i} is said to be \defn{incrementable}.
14211418
\tcode{I} models \tcode{\libconcept{weakly_incrementable}<I>} only if
14221419
\begin{itemize}
14231420
\item The expressions \tcode{++i} and \tcode{i++} have the same domain.
@@ -2614,7 +2611,7 @@
26142611
argument, so that the function can select the most efficient algorithm at compile time.
26152612
To facilitate this, the
26162613
library introduces
2617-
\term{category tag}
2614+
\defn{category tag}
26182615
classes which are used as compile time tags for algorithm selection.
26192616
They are:
26202617
\tcode{output_iterator_tag},

0 commit comments

Comments
 (0)