Apache C++ Standard Library User's Guide
Chapter 35: Synchronizing Streams
35.1 Sharing Files Among Streams
35.2 Explicit Synchronization
35.2.1 Output Streams
35.2.2 Input Streams
35.3 Implicit Synchronization Using the unitbuf Format Flag
35.4 Implicit Synchronization by Tying Streams
35.5 Synchronizing the Standard Iostream Objects
35.6 Synchronization with the C Standard I/O