File tree 2 files changed +6
-5
lines changed
2 files changed +6
-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} $ \tcode {i} + \range {0}{n} $ is empty if \tcode {n == 0};
624
+ otherwise, $ \tcode {i} + \range {0}{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 $ \tcode {i} + \range {0}{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 $ \tcode {++i} + \range {0}{ -{-}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 5718
5718
\rSec 2[range.counted]{Counted view}
5719
5719
5720
5720
\pnum
5721
+ \indextext {range!counted}%
5721
5722
A counted view presents a \libconcept {view} of the elements
5722
- of the counted range\iref {iterator.requirements.general } \range {i}{n}
5723
+ of the counted range\iref {iterator.requirements.general } $ \tcode {i} + \range {0}{n} $
5723
5724
for some iterator \tcode {i} and non-negative integer \tcode {n}.
5724
5725
5725
5726
\pnum
You can’t perform that action at this time.
0 commit comments