Enable emit‐on‐flush for a basic_syncbuf backing stream.
Synopsis
Declared in <bslstl_ostream.h>
template<
class CHAR,
class TRAITS>
basic_ostream<CHAR, TRAITS>&
emit_on_flush(basic_ostream<CHAR, TRAITS>& stream);
Description
If, for the specified stream, stream.rdbuf() is a basic_syncbuf<CHAR,TRAITS,ALLOCATOR>, make stream emit (i.e., transmit data to the wrapped stream buffer) when flushed, otherwise has no effect. Return stream.
Return Value
a reference to stream
Parameters
Name |
Description |
stream |
output stream that may wrap a |
Created with MrDocs