共用方式為


streambuf::sync Method

For output streams, flush any internally buffered data to the underlying medium.

virtual pplx::task<void> sync();

Return Value

true if the flush succeeds, false if not

Requirements

Header: astreambuf.h

Namespace: concurrency::streams

See Also

Reference

streambuf Class