当缓冲区不为空时,使输出处理。
ios_base& unitbuf(
ios_base& _Str
);
参数
- _Str
对类型 ios_base对象,或者从 ios_base继承的类型。
返回值
为 _Str 派生的对象的引用。
备注
请注意 endl 也会刷新缓冲区。
默认情况下nounitbuf 有效。
操作者有效调用 _Str.setf(ios_base::unitbuf),然后返回 _Str。
要求
标头: <ios>
命名空间: std
当缓冲区不为空时,使输出处理。
ios_base& unitbuf(
ios_base& _Str
);
为 _Str 派生的对象的引用。
请注意 endl 也会刷新缓冲区。
默认情况下nounitbuf 有效。
操作者有效调用 _Str.setf(ios_base::unitbuf),然后返回 _Str。
标头: <ios>
命名空间: std