Skip to content

Commit d03c965

Browse files
committed
[iostate.flags] clarify boolean expressions
1 parent caf9f79 commit d03c965

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

source/iostreams.tex

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2279,8 +2279,8 @@
22792279
\begin{itemdescr}
22802280
\pnum
22812281
\effects
2282-
If \tcode{((state | (rdbuf() ? goodbit : badbit)) \& exceptions()) == 0},
2283-
returns.
2282+
If \tcode{((state | (rdbuf() ? goodbit : badbit)) \& exceptions()) == 0}
2283+
is \keyword{true}, returns.
22842284
Otherwise, the function throws an object of class
22852285
\tcode{ios_base::failure}\iref{ios.failure},
22862286
constructed with
@@ -2290,11 +2290,11 @@
22902290
\pnum
22912291
\ensures
22922292
If
2293-
\tcode{rdbuf() != 0}
2293+
\tcode{rdbuf() != 0} is \keyword{true}
22942294
then
2295-
\tcode{state == rdstate()};
2295+
\tcode{state == rdstate()} is \keyword{true};
22962296
otherwise
2297-
\tcode{rdstate() == (state | ios_base::badbit)}.
2297+
\tcode{rdstate() == (state | ios_base::badbit)} is \keyword{true}.
22982298
\end{itemdescr}
22992299

23002300
\indexlibrarymember{setstate}{basic_ios}%
@@ -2319,7 +2319,7 @@
23192319
\begin{itemdescr}
23202320
\pnum
23212321
\returns
2322-
\tcode{rdstate() == 0}
2322+
\tcode{rdstate() == 0} is \keyword{true}.
23232323
\end{itemdescr}
23242324

23252325
\indexlibrarymember{eof}{basic_ios}%
@@ -2402,7 +2402,7 @@
24022402

24032403
\pnum
24042404
\ensures
2405-
\tcode{except == exceptions()}.
2405+
\tcode{except == exceptions()} is \keyword{true}.
24062406
\end{itemdescr}
24072407

24082408
\rSec2[std.ios.manip]{\tcode{ios_base} manipulators}

0 commit comments

Comments
 (0)