flush (Standard C++ Library)
Flushes the buffer.
template class<_Elem, _Tr>
basic_ostream<_Elem, _Tr>&
flush(basic_ostream<_Elem, _Tr>& _Ostr
);
_Elem
The element type._Ostr
An object of type basic_ostream._Tr
Character traits.
An object of type basic_ostream.
The manipulator calls _Ostr**.**flush. It returns _Ostr.
// ostream_flush.cpp
// compile with: /EHsc
#include <iostream>
int main( )
{
using namespace std;
cout << "testing" << flush;
}
testing
Header: <ostream>
Namespace: std