Freigeben über


flush (C++-Standardbibliothek)

Leert den Puffer.

template class<_Elem, _Tr> 
   basic_ostream<_Elem, _Tr>&  
   flush(basic_ostream<_Elem, _Tr>& _Ostr
   );

Parameter

  • _Elem
    Der Elementtyp.

  • _Ostr
    Ein Objekt vom Typ basic_ostream.

  • _Tr
    Zeichenmerkmale.

Rückgabewert

Ein Objekt vom Typ basic_ostream.

Hinweise

Der Manipulator ruft _Ostr**.**flush auf. Sie gibt _Ostr zurück.

Beispiel

// ostream_flush.cpp
// compile with: /EHsc
#include <iostream>

int main( ) 
{
   using namespace std;
   cout << "testing" << flush;
}
  

Anforderungen

Header: <ostream>

Namespace: std

Siehe auch

Referenz

iostream-Programmierung

iostreams-Konventionen