Depending on the implementation, this synchronization might imply some often unnecessary
overhead. For example, implementing the standard C++ streams using the standard C files inhibits
buffering in the corresponding stream buffers. However, the buffer in the stream buffers is necessary
for some optimizations, especially during formatted reading (see Section 15.14.2, page 845). To
allow switching to a better implementation, the static member function sync_with_stdio() is
defined for the class ios_base (Table 15.47).