[syncstream.syn] # 31 Input/output library [[input.output]](./#input.output) ## 31.11 Synchronized output streams [[syncstream]](syncstream#syn) ### 31.11.1 Header synopsis [syncstream.syn] [🔗](#header:%3csyncstream%3e) #include // see [[ostream.syn]](ostream.syn "31.7.2 Header synopsis")namespace std {// [[syncstream.syncbuf]](syncstream.syncbuf "31.11.2 Class template basic_­syncbuf"), class template basic_syncbuftemplate, class Allocator = allocator>class basic_syncbuf; // [[syncstream.syncbuf.special]](syncstream.syncbuf.special "31.11.2.6 Specialized algorithms"), specialized algorithmstemplatevoid swap(basic_syncbuf&, basic_syncbuf&); using syncbuf = basic_syncbuf; using wsyncbuf = basic_syncbuf; // [[syncstream.osyncstream]](syncstream.osyncstream "31.11.3 Class template basic_­osyncstream"), class template basic_osyncstreamtemplate, class Allocator = allocator>class basic_osyncstream; using osyncstream = basic_osyncstream; using wosyncstream = basic_osyncstream;} [1](#1) [#](http://github.com/Eelis/draft/tree/9adde4bc1c62ec234483e63ea3b70a59724c745a/source/iostreams.tex#L12596) The header [](#header:%3csyncstream%3e "31.11.1 Header synopsis [syncstream.syn]") provides a mechanism to synchronize execution agents writing to the same stream[.](#1.sentence-1)