tmp/tmplhb_tk95/{from.md → to.md}
RENAMED
|
@@ -26,24 +26,25 @@ explicit sentry(basic_ostream& os);
|
|
| 26 |
|
| 27 |
If `os.good()` is nonzero, prepares for formatted or unformatted output.
|
| 28 |
If `os.tie()` is not a null pointer, calls `os.tie()->flush()`.[^29]
|
| 29 |
|
| 30 |
If, after any preparation is completed, `os.good()` is `true`,
|
| 31 |
-
`ok_ == true` otherwise, `ok_ == false`. During preparation, the
|
| 32 |
constructor may call `setstate(failbit)` (which may throw
|
| 33 |
`ios_base::failure` [[iostate.flags]]).[^30]
|
| 34 |
|
| 35 |
``` cpp
|
| 36 |
~sentry();
|
| 37 |
```
|
| 38 |
|
| 39 |
If
|
| 40 |
`(os.flags() & ios_base::unitbuf) && !uncaught_exceptions() && os.good()`
|
| 41 |
-
is `true`, calls `os.rdbuf()->pubsync()`. If that function returns -1
|
| 42 |
-
sets `badbit` in `os.rdstate()` without
|
|
|
|
| 43 |
|
| 44 |
``` cpp
|
| 45 |
explicit operator bool() const;
|
| 46 |
```
|
| 47 |
|
| 48 |
-
*Effects:* Returns
|
| 49 |
|
|
|
|
| 26 |
|
| 27 |
If `os.good()` is nonzero, prepares for formatted or unformatted output.
|
| 28 |
If `os.tie()` is not a null pointer, calls `os.tie()->flush()`.[^29]
|
| 29 |
|
| 30 |
If, after any preparation is completed, `os.good()` is `true`,
|
| 31 |
+
*`ok_`*` == true` otherwise, *`ok_`*` == false`. During preparation, the
|
| 32 |
constructor may call `setstate(failbit)` (which may throw
|
| 33 |
`ios_base::failure` [[iostate.flags]]).[^30]
|
| 34 |
|
| 35 |
``` cpp
|
| 36 |
~sentry();
|
| 37 |
```
|
| 38 |
|
| 39 |
If
|
| 40 |
`(os.flags() & ios_base::unitbuf) && !uncaught_exceptions() && os.good()`
|
| 41 |
+
is `true`, calls `os.rdbuf()->pubsync()`. If that function returns -1 or
|
| 42 |
+
exits via an exception, sets `badbit` in `os.rdstate()` without
|
| 43 |
+
propagating an exception.
|
| 44 |
|
| 45 |
``` cpp
|
| 46 |
explicit operator bool() const;
|
| 47 |
```
|
| 48 |
|
| 49 |
+
*Effects:* Returns *ok\_*.
|
| 50 |
|