Name
unitbuf function — Manipulator to use unit buffering
Synopsis
ios_base& unitbuf(ios_base& stream)
The unitbuf
function is a
manipulator that sets the unitbuf
flag, which causes the stream to be flushed after each output
operation. Specifically, the function calls stream.setf(ios_base::unitbuf)
and returns
stream
.
Get C++ In a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.