Skip to content

Commit 402b0ae

Browse files
committed
[streambuf.virt.get] use half-open ranges in underflow effects
1 parent b5b83f5 commit 402b0ae

File tree

1 file changed

+10
-16
lines changed

1 file changed

+10
-16
lines changed

source/iostreams.tex

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3726,9 +3726,8 @@
37263726
of characters is defined as the concatenation of
37273727
\begin{itemize}
37283728
\item the empty sequence if \tcode{gptr()} is null, otherwise the
3729-
\tcode{egptr() - gptr()}
3730-
characters starting at
3731-
\tcode{gptr()},
3729+
characters in
3730+
\range{gptr()}{egptr()},
37323731
followed by
37333732
\item
37343733
some (possibly empty) sequence of characters read from the input sequence.
@@ -3746,9 +3745,8 @@
37463745
The
37473746
\term{backup sequence}
37483747
is the empty sequence if \tcode{eback()} is null, otherwise the
3749-
\tcode{gptr() - eback()}
3750-
characters beginning at
3751-
\tcode{eback()}.
3748+
characters in
3749+
\range{eback()}{gptr()}.
37523750

37533751
\pnum
37543752
\effects
@@ -3760,10 +3758,9 @@
37603758
if the pending sequence is non-empty, then
37613759
\tcode{egptr()}
37623760
is non-null and
3763-
\tcode{egptr() - gptr()}
3764-
characters starting at
3765-
\tcode{gptr()}
3766-
are the characters in the pending sequence, otherwise
3761+
the characters in \range{gptr()}{egptr()} are
3762+
the characters in the pending sequence,
3763+
otherwise
37673764
either \tcode{gptr()}
37683765
is null or
37693766
\tcode{gptr() == egptr()}.
@@ -3778,16 +3775,13 @@
37783775
\item
37793776
the backup sequence contains at least
37803777
\tcode{gptr() - eback()}
3781-
characters, in which case the
3782-
\tcode{gptr() - eback()}
3783-
characters starting at
3784-
\tcode{eback()}
3778+
characters, in which case the characters in
3779+
\range{eback()}{gptr()}
37853780
agree with the last
37863781
\tcode{gptr() - eback()}
37873782
characters of the backup sequence, or
37883783
\item
3789-
the \tcode{n} characters starting at
3790-
\tcode{gptr() - n}
3784+
the characters in \range{gptr() - n}{gptr()}
37913785
agree with the backup sequence (where \tcode{n} is the length of the backup sequence).
37923786
\end{itemize}
37933787

0 commit comments

Comments
 (0)