All streams are buffered (by default) except
cerr and
wcerr.
Note: You can change the buffering characteristic of a stream with:
cout.setf(ios_base::unitbuf);
or
cerr.unsetf(ios_base::unitbuf);
Tip: Do not include <iostream> unless needed. Including and not using <iostream> will add code size. If you really need it, consider including only <niostream> instead. This will instantiate only the narrow console streams, not the wide ones.