Compartir a través de


flush (Standard C++ Library)

Flushes the buffer.

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

Parameters

  • _Elem
    The element type.

  • _Ostr
    An object of type basic_ostream.

  • _Tr
    Character traits.

Return Value

An object of type basic_ostream.

Remarks

The manipulator calls _Ostr**.**flush. It returns _Ostr.

Example

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

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

testing

Requirements

Header: <ostream>

Namespace: std

See Also

Concepts

<ostream> Members

iostream Programming

iostreams Conventions