Skip to content

Commit 13d04d0

Browse files
CaseyCarterzygoloid
authored andcommitted
[iterator.requirements.general] "counted range" defines a term of art
Fixes cplusplus#2931.
1 parent b3b1f63 commit 13d04d0

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

‎source/iterators.tex‎

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -614,12 +614,15 @@
614614
\range{i}{s} denotes a valid range.
615615

616616
\pnum
617-
A counted range \range{i}{n} is empty if \tcode{n == 0}; otherwise, \range{i}{n}
618-
refers to the \tcode{n} elements in the data structure starting with the element
619-
pointed to by \tcode{i} and up to but not including the element, if any, pointed to by
620-
the result of \tcode{n} applications of \tcode{++i}. A counted range
621-
\range{i}{n} is valid if and only if \tcode{n == 0}; or \tcode{n} is positive,
622-
\tcode{i} is dereferenceable, and \range{++i}{-{-}n} is valid.
617+
A \defnadj{counted}{range} \range{i}{n} is empty if \tcode{n == 0};
618+
otherwise, \range{i}{n} refers to
619+
the \tcode{n} elements in the data structure
620+
starting with the element pointed to by \tcode{i} and up to but not including
621+
the element, if any, pointed to by
622+
the result of \tcode{n} applications of \tcode{++i}.
623+
A counted range \range{i}{n} is valid if and only if \tcode{n == 0};
624+
or \tcode{n} is positive, \tcode{i} is dereferenceable,
625+
and \range{++i}{-{-}n} is valid.
623626

624627
\pnum
625628
The result of the application of library functions

0 commit comments

Comments
 (0)