Namespaces
Variants

std:: emit_on_flush, std:: noemit_on_flush

From cppreference.net
< cpp ‎ | io ‎ | manip
Input/output manipulators
Floating-point formatting
Integer formatting
Boolean formatting
Field width and fill control
Other formatting
Whitespace processing
Output flushing
emit_on_flush noemit_on_flush
(C++20) (C++20)
Status flags manipulation
Time and money I/O
(C++11)
(C++11)
(C++11)
(C++11)
Quoted manipulator
(C++14)
ヘッダーで定義 <ostream>
template < class CharT, class Traits >
std:: basic_ostream < CharT, Traits > & emit_on_flush ( std:: basic_ostream < CharT, Traits > & os ) ;
(1) (C++20以降)
template < class CharT, class Traits >
std:: basic_ostream < CharT, Traits > & noemit_on_flush ( std:: basic_ostream < CharT, Traits > & os ) ;
(2) (C++20以降)

os. rdbuf ( ) が実際に std:: basic_syncbuf < CharT, Traits, Allocator > buf を指している場合、フラッシュ時に(データを基盤となるストリームバッファに)送信するかどうかを切り替えます:

1) 呼び出し buf. set_emit_on_sync ( true )
2) 呼び出し buf. set_emit_on_sync ( false )

それ以外の場合、これらのマニピュレータは効果を持ちません。

これは出力専用のI/Oマニピュレータであり、 out << std :: emit_on_flush のような式で呼び出すことができます。これは out std::basic_ostream 型である任意の出力ストリームに対して使用可能です。


目次

パラメータ

os - 出力ストリームへの参照

戻り値

os (操作後のストリームへの参照)

関連項目

同期時出力ポリシーを変更する
( std::basic_syncbuf<CharT,Traits,Allocator> の公開メンバ関数)