Talk:cpp/io/basic filebuf/sync
From cppreference.com
> sync() or its equivalent is implicitly called by ... seekoff(), and seekpos() ...
Could you please clarify this? It sounds like sync() can be called or not called by these two methods.
- all those functions (sync(), seekoff(), seekpos(), and close()) flush the the put area. In LLVM libc++, close(), seekoff(), and seekpos() call sync() directly. In GNU libstdc++, all four call some other shared code. --Cubbi (talk) 13:25, 31 January 2022 (PST)