From Jason Turner

[ostream.formatted.reqmts]

Diff to HTML by rtfpessoa

tmp/tmpjb_2qu0c/{from.md → to.md} RENAMED
@@ -1,18 +1,20 @@
1
  ##### Common requirements <a id="ostream.formatted.reqmts">[[ostream.formatted.reqmts]]</a>
2
 
3
  Each formatted output function begins execution by constructing an
4
- object of class `sentry`. If this object returns `true` when converted
5
  to a value of type `bool`, the function endeavors to generate the
6
  requested output. If the generation fails, then the formatted output
7
- function does `setstate(ios_base::failbit)`, which might throw an
8
  exception. If an exception is thrown during output, then
9
- `ios_base::badbit` is turned on[^33] in `*this`’s error state. If
10
- `(exceptions()&badbit) != 0` then the exception is rethrown. Whether or
11
- not an exception is thrown, the `sentry` object is destroyed before
12
- leaving the formatted output function. If no exception is thrown, the
13
- result of the formatted output function is `*this`.
 
 
14
 
15
  The descriptions of the individual formatted output functions describe
16
  how they perform output and do not mention the `sentry` object.
17
 
18
  If a formatted output function of a stream `os` determines padding, it
 
1
  ##### Common requirements <a id="ostream.formatted.reqmts">[[ostream.formatted.reqmts]]</a>
2
 
3
  Each formatted output function begins execution by constructing an
4
+ object of class `sentry`. If that object returns `true` when converted
5
  to a value of type `bool`, the function endeavors to generate the
6
  requested output. If the generation fails, then the formatted output
7
+ function does `setstate(ios_base::failbit)`, which can throw an
8
  exception. If an exception is thrown during output, then
9
+ `ios_base::badbit` is set[^31]
10
+
11
+ in `*this`’s error state. If `(exceptions()&badbit) != 0` then the
12
+ exception is rethrown. Whether or not an exception is thrown, the
13
+ `sentry` object is destroyed before leaving the formatted output
14
+ function. If no exception is thrown, the result of the formatted output
15
+ function is `*this`.
16
 
17
  The descriptions of the individual formatted output functions describe
18
  how they perform output and do not mention the `sentry` object.
19
 
20
  If a formatted output function of a stream `os` determines padding, it