File tree 3 files changed +7
-5
lines changed
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 620
620
\range {i}{s} denotes a valid range.
621
621
622
622
\pnum
623
- A \defnadj {counted}{range} \range {i}{n} is empty if \tcode {n == 0};
624
- otherwise, \range {i}{n} refers to
623
+ A \defnadj {counted}{range} \countedrange {i}{n} is empty if \tcode {n == 0};
624
+ otherwise, \countedrange {i}{n} refers to
625
625
the \tcode {n} elements in the data structure
626
626
starting with the element pointed to by \tcode {i} and up to but not including
627
627
the element, if any, pointed to by
628
628
the result of \tcode {n} applications of \tcode {++i}.
629
- A counted range \range {i}{n} is valid if and only if \tcode {n == 0};
629
+ A counted range \countedrange {i}{n} is valid if and only if \tcode {n == 0};
630
630
or \tcode {n} is positive, \tcode {i} is dereferenceable,
631
- and \range {++i}{-{-}n} is valid.
631
+ and \countedrange {++i}{-{-}n} is valid.
632
632
633
633
\pnum
634
634
The result of the application of library functions
Original file line number Diff line number Diff line change 379
379
\newcommand {\brange }[2]{\Range {(}{]}{#1}{#2}}
380
380
\newcommand {\orange }[2]{\Range {(}{)}{#1}{#2}}
381
381
\newcommand {\range }[2]{\Range {[}{)}{#1}{#2}}
382
+ \newcommand {\countedrange }[2]{$ \tcode {#1} + \range {0}{#2}$ }
382
383
383
384
% % Change descriptions
384
385
\newcommand {\diffhead }[1]{\textbf {#1: }\space }
Original file line number Diff line number Diff line change 5719
5719
\rSec 2[range.counted]{Counted view}
5720
5720
5721
5721
\pnum
5722
+ \indextext {range!counted}%
5722
5723
A counted view presents a \libconcept {view} of the elements
5723
- of the counted range\iref {iterator.requirements.general } \range {i}{n}
5724
+ of the counted range\iref {iterator.requirements.general } \countedrange {i}{n}
5724
5725
for some iterator \tcode {i} and non-negative integer \tcode {n}.
5725
5726
5726
5727
\pnum
You can’t perform that action at this time.
0 commit comments