다음을 통해 공유


basic_filebuf::sync

Tries to synchronize the controlled streams with any associated external streams.

virtual int sync( );

반환 값

Returns zero if the file pointer fp is a null pointer. Otherwise, it returns zero only if calls to both overflow and fflush(fp) succeed in flushing any pending output to the stream.

요구 사항

Header: <fstream>

네임스페이스: std

참고 항목

참조

basic_filebuf 클래스

iostream 프로그래밍

iostreams 규칙