28
Input/output library
[input.output]
28.10
Synchronized output streams
[syncstream]
28.10.2
Class template
basic_syncbuf
[syncstream.syncbuf]
28.10.2.5
Overridden virtual functions
[syncstream.syncbuf.virtuals]
🔗
int
sync
(
)
override
;
1
#
Effects:
Records that the wrapped stream buffer is to be flushed
.
Then, if
emit_on_sync
is
true
, calls
emit
(
)
.
[
 
Note
:
If
emit_on_sync
is
false
, the actual flush is delayed until a call to
emit
(
)
.
—
 
end note
 
]
2
#
Returns:
If
emit
(
)
was called and returned
false
, returns
-
1
; otherwise
0
.