GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
std::basic_streambuf::pubsync,std::basic_streambuf::sync(3) C++ Standard Libary std::basic_streambuf::pubsync,std::basic_streambuf::sync(3)

std::basic_streambuf::pubsync,std::basic_streambuf::sync - std::basic_streambuf::pubsync,std::basic_streambuf::sync


int pubsync(); (1)
protected: (2)
virtual int sync();


Synchronizes the controlled character sequence (the buffers) with the associated
character sequence.


1) Calls sync() of the most derived class


2) The base class version of this function has no effect. The derived classes may
override this function to allow synchronizing the underlying device with the
buffers.


For output streams, this typically results in writing the contents of the put area
into the associated sequence, i.e. flushing of the output buffer. For input streams,
this typically empties the get area and forces a re-read from the associated
sequence to pick up recent changes. The default behavior (found, for example, in
std::basic_stringbuf), is to do nothing.


(none)


1) The return value of sync().


2) Returns 0 on success, -1 otherwise. The base class version returns 0.


This section is incomplete
Reason: no example


sync synchronizes with the underlying storage device
(public member function of std::basic_istream<CharT,Traits>)
sync writes characters to the associated file from the put area
[virtual] (virtual protected member function of std::basic_filebuf<CharT,Traits>)

2022.07.31 http://cppreference.com

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.