streambuf::sync [virtual] [protected]
int sync ( );
streambuf
  cplusplus.com  

Synchronize stream buffer.
  This member is called to synchronize the stream buffer with the content of the external associated device. Its default behavior for this class is just to return zero.
  This is a virtual member function that should be redefined in derived classes to behave as expected flushing the content of the internal output buffer.
  Standard class filebuf redefines this specifically for filebuf objects (filebuf::sync).

Parameters.

none
 

Return Value.
  In case of success zero is returned, otherwise the function shall return -1.

Basic template member declaration ( basic_streambuf<charT,traits> ):
int sync ( );

See also.
  pubsync, filebuf::sync
  streambuf class


© The C++ Resources Network, 2001