Skip to content

Commit a41ccee

Browse files
authored
Address review comments
Clarify whitespace character determination in constructor
1 parent 61aaf2e commit a41ccee

File tree

1 file changed

+8
-15
lines changed

1 file changed

+8
-15
lines changed

source/iostreams.tex

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4585,23 +4585,13 @@
45854585
\tcode{setstate(failbit | eofbit)}
45864586
(which may throw
45874587
\tcode{ios_base::failure}).
4588-
After any preparation is completed, \exposid{ok_} is set to the value of \tcode{is.good()}.
45894588

45904589
\pnum
4591-
\remarks
4592-
This constructor
4593-
uses the currently imbued locale in \tcode{is},
4594-
to determine whether the next input character is
4595-
whitespace or not.
4596-
4597-
\pnum
4598-
To decide if the character \tcode{c} is a whitespace character,
4599-
the constructor performs as if it executes the following code fragment:
4600-
\begin{codeblock}
4601-
const ctype<charT>& ct = use_facet<ctype<charT>>(is.getloc());
4602-
if (ct.is(ct.space, c))
4603-
// \tcode{c} is a whitespace character.
4604-
\end{codeblock}
4590+
The currently imbued locale in \tcode{is} is used
4591+
to determine whether or not the next input character is whitespace.
4592+
The character \tcode{c} is a whitespace character if
4593+
\tcode{ct.is(ct.space, c)} is \tcode{true},
4594+
where \tcode{ct} is \tcode{use_facet<ctype<charT>>(is.getloc())}.
46054595

46064596
\pnum
46074597
During preparation, the constructor may call
@@ -4616,6 +4606,9 @@
46164606
\indextext{implementation-dependent}%
46174607
implementation-dependent operations.
46184608
\end{footnote}
4609+
4610+
\pnum
4611+
After any preparation is completed, \exposid{ok_} is set to the value of \tcode{is.good()}.
46194612
\end{itemdescr}
46204613

46214614
\indexlibrarydtor{sentry}%

0 commit comments

Comments
 (0)