Skip to content

Commit 7389b58

Browse files
committed
[iostream.cons] clarify boolean expression
1 parent 00d79c5 commit 7389b58

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

source/iostreams.tex

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5383,7 +5383,7 @@
53835383
Characters are extracted until any of the following occurs:
53845384
\begin{itemize}
53855385
\item
5386-
\tcode{n != numeric_limits<streamsize>::max()}\iref{numeric.limits}
5386+
\tcode{n != numeric_limits<streamsize>::max()} is \keyword{true}\iref{numeric.limits}
53875387
and
53885388
\tcode{n} characters have been extracted so far
53895389
\item
@@ -5493,7 +5493,7 @@
54935493
into successive locations of an array whose first element is designated by
54945494
\tcode{s}.
54955495
If
5496-
\tcode{rdbuf()->in_avail() == -1},
5496+
\tcode{rdbuf()->in_avail() == -1} is \keyword{true},
54975497
calls
54985498
\tcode{setstate(eofbit)}
54995499
(which may throw
@@ -5502,11 +5502,11 @@
55025502
\begin{itemize}
55035503
\item
55045504
If
5505-
\tcode{rdbuf()->in_avail() == 0},
5505+
\tcode{rdbuf()->in_avail() == 0} is \keyword{true},
55065506
extracts no characters
55075507
\item
55085508
If
5509-
\tcode{rdbuf()->in_avail() > 0},
5509+
\tcode{rdbuf()->in_avail() > 0} is \keyword{true},
55105510
extracts
55115511
\tcode{min(rdbuf()->in_avail(), n))}.
55125512
\end{itemize}
@@ -5644,7 +5644,7 @@
56445644
\pnum
56455645
\returns
56465646
After constructing a \tcode{sentry} object, if
5647-
\tcode{fail() != false},
5647+
\tcode{fail()} is \keyword{true},
56485648
returns
56495649
\tcode{pos_type(-1)}
56505650
to indicate failure.
@@ -5667,7 +5667,7 @@
56675667
returned by subsequent calls to
56685668
\tcode{gcount()}.
56695669
After constructing a \tcode{sentry} object, if
5670-
\tcode{fail() != true},
5670+
\tcode{fail()} is \keyword{false},
56715671
executes
56725672
\tcode{rdbuf()->pubseekpos(pos, ios_base::in)}.
56735673
In case of failure, the function calls
@@ -5692,7 +5692,7 @@
56925692
does not count the number of characters extracted, and
56935693
does not affect the value returned by subsequent calls to \tcode{gcount()}.
56945694
After constructing a \tcode{sentry} object, if
5695-
\tcode{fail() != true},
5695+
\tcode{fail()} is \keyword{false},
56965696
executes
56975697
\tcode{rdbuf()->pubseekoff(off, dir, ios_base::in)}.
56985698
In case of failure, the function calls \tcode{setstate(\brk{}failbit)} (which may throw
@@ -5821,9 +5821,9 @@
58215821

58225822
\pnum
58235823
\ensures
5824-
\tcode{rdbuf() == sb}
5824+
\tcode{rdbuf() == sb} is \keyword{true}
58255825
and
5826-
\tcode{gcount() == 0}.
5826+
\tcode{gcount() == 0} is \keyword{true}.
58275827
\end{itemdescr}
58285828

58295829
\indexlibraryctor{basic_iostream}%

0 commit comments

Comments
 (0)