Files
cppdraft_translate/cppdraft/syncstream/syn.md
2025-10-25 03:02:53 +03:00

1.6 KiB

[syncstream.syn]

31 Input/output library [input.output]

31.11 Synchronized output streams [syncstream]

31.11.1 Header synopsis [syncstream.syn]

🔗

#include // see [ostream.syn]namespace std {// [syncstream.syncbuf], class template basic_syncbuftemplate<class charT, class traits = char_traits, class Allocator = allocator>class basic_syncbuf; // [syncstream.syncbuf.special], specialized algorithmstemplate<class charT, class traits, class Allocator>void swap(basic_syncbuf<charT, traits, Allocator>&, basic_syncbuf<charT, traits, Allocator>&); using syncbuf = basic_syncbuf; using wsyncbuf = basic_syncbuf<wchar_t>; // [syncstream.osyncstream], class template basic_osyncstreamtemplate<class charT, class traits = char_traits, class Allocator = allocator>class basic_osyncstream; using osyncstream = basic_osyncstream; using wosyncstream = basic_osyncstream<wchar_t>;}

1

#

The header provides a mechanism to synchronize execution agents writing to the same stream.