Wrapper class that guarantees that file commit atomicity.
void commit()
Commits the new file contents to disk atomically.
atomic_commit & operator=(const atomic_commit &)=delete
atomic_commit(const atomic_commit &)=delete
scoped_ostream & ostream()
Returns the write stream associated with the file.
Declarations for File-IO.
std::unique_ptr< std::ostream > scoped_ostream
std::string filename
Filename.