int sync();
Synchronizes the stream’s internal buffer with the external source of characters.
Return Value
EOF to indicate errors.
Remarks
Synchronizes the stream’s internal buffer with the external source of characters. This function calls the virtual streambuf::sync function so you can customize its implementation by deriving a new class from streambuf.
istream Overview | Input Stream Classes
See Also streambuf::sync