From Jason Turner

[ostream::sentry]

Diff to HTML by rtfpessoa

tmp/tmp745w_wxi/{from.md → to.md} RENAMED
@@ -1,6 +1,6 @@
1
- #### Class `basic_ostream::sentry` <a id="ostream::sentry">[[ostream::sentry]]</a>
2
 
3
  ``` cpp
4
  namespace std {
5
  template <class charT, class traits = char_traits<charT>>
6
  class basic_ostream<charT, traits>::sentry {
@@ -22,23 +22,23 @@ exception safe prefix and suffix operations.
22
  ``` cpp
23
  explicit sentry(basic_ostream<charT, traits>& os);
24
  ```
25
 
26
  If `os.good()` is nonzero, prepares for formatted or unformatted output.
27
- If `os.tie()` is not a null pointer, calls `os.tie()->flush()`.[^30]
28
 
29
  If, after any preparation is completed, `os.good()` is `true`,
30
  `ok_ == true` otherwise, `ok_ == false`. During preparation, the
31
  constructor may call `setstate(failbit)` (which may throw
32
- `ios_base::failure` ([[iostate.flags]]))[^31]
33
 
34
  ``` cpp
35
  ~sentry();
36
  ```
37
 
38
  If
39
- `((os.flags() & ios_base::unitbuf) && !uncaught_exception() && os.good())`
40
  is `true`, calls `os.rdbuf()->pubsync()`. If that function returns -1,
41
  sets `badbit` in `os.rdstate()` without propagating an exception.
42
 
43
  ``` cpp
44
  explicit operator bool() const;
 
1
+ ##### Class `basic_ostream::sentry` <a id="ostream::sentry">[[ostream::sentry]]</a>
2
 
3
  ``` cpp
4
  namespace std {
5
  template <class charT, class traits = char_traits<charT>>
6
  class basic_ostream<charT, traits>::sentry {
 
22
  ``` cpp
23
  explicit sentry(basic_ostream<charT, traits>& os);
24
  ```
25
 
26
  If `os.good()` is nonzero, prepares for formatted or unformatted output.
27
+ If `os.tie()` is not a null pointer, calls `os.tie()->flush()`.[^31]
28
 
29
  If, after any preparation is completed, `os.good()` is `true`,
30
  `ok_ == true` otherwise, `ok_ == false`. During preparation, the
31
  constructor may call `setstate(failbit)` (which may throw
32
+ `ios_base::failure` ([[iostate.flags]]))[^32]
33
 
34
  ``` cpp
35
  ~sentry();
36
  ```
37
 
38
  If
39
+ `(os.flags() & ios_base::unitbuf) && !uncaught_exceptions() && os.good()`
40
  is `true`, calls `os.rdbuf()->pubsync()`. If that function returns -1,
41
  sets `badbit` in `os.rdstate()` without propagating an exception.
42
 
43
  ``` cpp
44
  explicit operator bool() const;