| I/O manipulators | ||||
| Print functions(C++23) | ||||
| C-style I/O | ||||
| Buffers | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++20) | ||||
| Streams | ||||
| Abstractions | ||||
| File I/O | ||||
| String I/O | ||||
| Array I/O | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
(C++98/26*) | ||||
| Synchronized Output | ||||
(C++20) | ||||
| Types | ||||
| Error category interface | ||||
(C++11) | ||||
(C++11) |
| Public member functions | ||||
(C++20) | ||||
(C++20) | ||||
(C++20) | ||||
(C++20) | ||||
(C++20) | ||||
(C++20) | ||||
| Protected member functions | ||||
basic_syncbuf::sync (C++20) | ||||
| Non-member functions | ||||
(C++20) |
protected: int sync() override; | ||
First, records that a flush is pending, by updating the appropriate private flag.
Then, if the current emit-on-sync policy istrue, makes a call toemit().
Otherwise (if the emit-on-sync policy isfalse, which is the default), the flush is suspended untilemit() is called, such as throughstd::basic_osyncstream::emit() orstd::basic_osyncstream::~basic_osyncstream
Contents |
(none)
sync() or its equivalent is implicitly called byclose(),seekoff(), andseekpos() and explicitly called bystd::basic_streambuf::pubsync()
| This section is incomplete Reason: no example |
[virtual] | synchronizes the buffers with the associated character sequence (virtual protected member function of std::basic_streambuf<CharT,Traits>)[edit] |
callsemit() on the underlyingbasic_syncbuf to transmit its internal data to the final destination(public member function of std::basic_osyncstream<CharT,Traits,Allocator>)[edit] |