flush (Standardowa biblioteka C++)

Opróżnia bufor.

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

Parametry

  • _Elem
    Typ elementu.

  • _Ostr
    Obiekt typu basic_ostream.

  • _Tr
    Cechy charakteru.

Wartość zwracana

Obiekt typu basic_ostream.

Uwagi

Wywołania manipulator _Ostr**.**flush.Zwraca _Ostr.

Przykład

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

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

Wymagania

Nagłówek:<ostream>

Przestrzeń nazw: std

Zobacz też

Informacje

iostream Programming

Konwencje iostream