31
Input/output library
[input.output]
31.11
Synchronized output streams
[syncstream]
31.11.1
Header
<syncstream>
synopsis
[syncstream.syn]
🔗
#include
<
ostream
>
// see
[ostream.
syn]
namespace
std
{
//
[syncstream.
syncbuf]
, class template
basic_
syncbuf
template
<
class
charT,
class
traits
=
char_traits
<
charT
>
,
class
Allocator
=
allocator
<
charT
>
>
class
basic_syncbuf;
//
[syncstream.
syncbuf.
special]
, specialized algorithms
template
<
class
charT,
class
traits,
class
Allocator
>
void
swap
(
basic_syncbuf
<
charT, traits, Allocator
>
&
, basic_syncbuf
<
charT, traits, Allocator
>
&
)
;
using
syncbuf
=
basic_syncbuf
<
char
>
;
using
wsyncbuf
=
basic_syncbuf
<
wchar_t
>
;
//
[syncstream.
osyncstream]
, class template
basic_
osyncstream
template
<
class
charT,
class
traits
=
char_traits
<
charT
>
,
class
Allocator
=
allocator
<
charT
>
>
class
basic_osyncstream;
using
osyncstream
=
basic_osyncstream
<
char
>
;
using
wosyncstream
=
basic_osyncstream
<
wchar_t
>
;
}
1
#
The header
<syncstream>
provides a mechanism to synchronize execution agents writing to the same stream
.