Namespaces
Variants

std:: flush_emit

From cppreference.net
< cpp ‎ | io ‎ | manip
定义于头文件 <ostream>
template < class CharT, class Traits >
std:: basic_ostream < CharT, Traits > & flush_emit ( std:: basic_ostream < CharT, Traits > & os ) ;
(C++20 起)

刷新输出序列 os ,如同通过调用 os. flush ( ) 。随后,若 os. rdbuf ( ) 实际指向一个 std:: basic_syncbuf < CharT, Traits, Allocator > buf ,则调用 buf. emit ( )

这是一个仅输出的I/O操纵器,可通过诸如 out << std :: flush_emit 的表达式调用,适用于任何 out 类型为 std::basic_ostream 的对象。


目录

参数

os - 输出流引用

返回值

os (指代经过操作后的流引用)

示例

另请参阅

与底层存储设备同步
( std::basic_ostream<CharT,Traits> 的公开成员函数)