tmp/tmpyhhallx5/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### Construction and destruction <a id="syncstream.osyncstream.cons">[[syncstream.osyncstream.cons]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
basic_osyncstream(streambuf_type* buf, const Allocator& allocator);
|
| 5 |
+
```
|
| 6 |
+
|
| 7 |
+
*Effects:* Initializes `sb` from `buf` and `allocator`. Initializes the
|
| 8 |
+
base class with `basic_ostream<charT, traits>(addressof(sb))`.
|
| 9 |
+
|
| 10 |
+
[*Note 1*: The member functions of the provided stream buffer might be
|
| 11 |
+
called from `emit()` while a lock is held. Care should be taken to
|
| 12 |
+
ensure that this does not result in deadlock. — *end note*]
|
| 13 |
+
|
| 14 |
+
*Ensures:* `get_wrapped() == buf` is `true`.
|
| 15 |
+
|
| 16 |
+
``` cpp
|
| 17 |
+
basic_osyncstream(basic_osyncstream&& other) noexcept;
|
| 18 |
+
```
|
| 19 |
+
|
| 20 |
+
*Effects:* Move constructs the base class and `sb` from the
|
| 21 |
+
corresponding subobjects of `other`, and calls
|
| 22 |
+
`basic_ostream<charT, traits>::set_rdbuf(addressof(sb))`.
|
| 23 |
+
|
| 24 |
+
*Ensures:* The value returned by `get_wrapped()` is the value returned
|
| 25 |
+
by `os.get_wrapped()` prior to calling this constructor.
|
| 26 |
+
`nullptr == other.get_wrapped()` is `true`.
|
| 27 |
+
|