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)
Definiert im Header <ostream>
template < class CharT, class Traits >
std:: basic_ostream < CharT, Traits > & emit_on_flush ( std:: basic_ostream < CharT, Traits > & os ) ;
(1) (seit C++20)
template < class CharT, class Traits >
std:: basic_ostream < CharT, Traits > & noemit_on_flush ( std:: basic_ostream < CharT, Traits > & os ) ;
(2) (seit C++20)

Wenn os. rdbuf ( ) tatsächlich auf einen std:: basic_syncbuf < CharT, Traits, Allocator > buf zeigt, schaltet es um, ob dieser beim Flush emittiert (d.h. Daten an den zugrundeliegenden Stream-Puffer überträgt):

1) ruft buf. set_emit_on_sync ( true )
2) Aufrufe buf. set_emit_on_sync ( false )

Andernfalls haben diese Manipulatoren keine Auswirkung.

Dies ist ein Nur-Ausgabe-I/O-Manipulator, er kann mit einem Ausdruck wie out << std :: emit_on_flush für jeden out vom Typ std::basic_ostream aufgerufen werden.


Inhaltsverzeichnis

Parameter

os - Referenz auf den Ausgabestream

Rückgabewert

os (Referenz auf den Stream nach der Manipulation)

Beispiel

Siehe auch

ändert die aktuelle Emit-on-Sync-Richtlinie
(öffentliche Elementfunktion von std::basic_syncbuf<CharT,Traits,Allocator> )