boost::corosio::stream_file::sync_data

Synchronize file data to stable storage.

Synopsis

[[nodiscard]]
std::error_code
sync_data() noexcept;

Description

Write‐back failures such as device I/O errors surface here and are reported through the returned error code. A closed file reports errc::bad_file_descriptor.

Return Value

The error code, empty on success.

The return value should not be discarded.

Created with MrDocs