Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

flush (Standard C++ Library)

Flushes the buffer.

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


The element type.


An object of type basic_ostream.


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;

Header: <ostream>

Namespace: std

© 2015 Microsoft