Boost C++ 库

...世界上最受推崇和设计精良的 C++ 库项目之一。 Herb SutterAndrei Alexandrescu,《C++ 编码规范

buffered_stream::flush (第 1/2 个重载) - Boost C++ 函数库
PrevUpHomeNext

将缓冲区中的所有数据刷新到下一层。返回上一次写入操作中写入下一层的字节数。失败时抛出异常。

std::size_t flush();

PrevUpHomeNext