tmp/tmplpwu1qm2/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
### Header `<syncstream>` synopsis <a id="syncstream.syn">[[syncstream.syn]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
#include <ostream> // see [ostream.syn]
|
| 5 |
+
|
| 6 |
+
namespace std {
|
| 7 |
+
template<class charT, class traits = char_traits<charT>, class Allocator = allocator<charT>>
|
| 8 |
+
class basic_syncbuf;
|
| 9 |
+
|
| 10 |
+
using syncbuf = basic_syncbuf<char>;
|
| 11 |
+
using wsyncbuf = basic_syncbuf<wchar_t>;
|
| 12 |
+
|
| 13 |
+
template<class charT, class traits = char_traits<charT>, class Allocator = allocator<charT>>
|
| 14 |
+
class basic_osyncstream;
|
| 15 |
+
|
| 16 |
+
using osyncstream = basic_osyncstream<char>;
|
| 17 |
+
using wosyncstream = basic_osyncstream<wchar_t>;
|
| 18 |
+
}
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
The header `<syncstream>` provides a mechanism to synchronize execution
|
| 22 |
+
agents writing to the same stream.
|
| 23 |
+
|