tmp/tmpc2orgbcq/{from.md → to.md}
RENAMED
|
@@ -2,22 +2,22 @@
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
static bool sync_with_stdio(bool sync = true);
|
| 5 |
```
|
| 6 |
|
| 7 |
-
*Returns:* `true` if the previous state of the standard iostream
|
| 8 |
-
objects [[iostream.objects]] was synchronized and otherwise returns
|
| 9 |
-
`false`. The first time it is called, the function returns `true`.
|
| 10 |
-
|
| 11 |
*Effects:* If any input or output operation has occurred using the
|
| 12 |
standard streams prior to the call, the effect is
|
| 13 |
*implementation-defined*. Otherwise, called with a `false` argument, it
|
| 14 |
allows the standard streams to operate independently of the standard C
|
| 15 |
streams.
|
| 16 |
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
|
| 20 |
``` cpp
|
| 21 |
fputc(f, c);
|
| 22 |
```
|
| 23 |
|
|
@@ -51,7 +51,7 @@ is the same as the effect of
|
|
| 51 |
|
| 52 |
``` cpp
|
| 53 |
str.rdbuf()->sputbackc(c);
|
| 54 |
```
|
| 55 |
|
| 56 |
-
for any sequence of characters.[^
|
| 57 |
|
|
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
static bool sync_with_stdio(bool sync = true);
|
| 5 |
```
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
*Effects:* If any input or output operation has occurred using the
|
| 8 |
standard streams prior to the call, the effect is
|
| 9 |
*implementation-defined*. Otherwise, called with a `false` argument, it
|
| 10 |
allows the standard streams to operate independently of the standard C
|
| 11 |
streams.
|
| 12 |
|
| 13 |
+
*Returns:* `true` if the previous state of the standard iostream
|
| 14 |
+
objects [[iostream.objects]] was synchronized and otherwise returns
|
| 15 |
+
`false`. The first time it is called, the function returns `true`.
|
| 16 |
+
|
| 17 |
+
*Remarks:* When a standard iostream object `str` is *synchronized* with
|
| 18 |
+
a standard stdio stream `f`, the effect of inserting a character `c` by
|
| 19 |
|
| 20 |
``` cpp
|
| 21 |
fputc(f, c);
|
| 22 |
```
|
| 23 |
|
|
|
|
| 51 |
|
| 52 |
``` cpp
|
| 53 |
str.rdbuf()->sputbackc(c);
|
| 54 |
```
|
| 55 |
|
| 56 |
+
for any sequence of characters.[^5]
|
| 57 |
|