| 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 | ||||
basic_syncbuf::basic_syncbuf (C++20) | ||||
(C++20) | ||||
(C++20) | ||||
(C++20) | ||||
(C++20) | ||||
(C++20) | ||||
| Protected member functions | ||||
(C++20) | ||||
| Non-member functions | ||||
(C++20) |
basic_syncbuf() : basic_syncbuf( nullptr) | (1) | |
explicit basic_syncbuf( streambuf_type* obuf) : basic_syncbuf( obuf, Allocator()){} | (2) | |
basic_syncbuf( streambuf_type* obuf,const Allocator& a); | (3) | |
basic_syncbuf( basic_syncbuf&& rhs); | (4) | |
std::basic_syncbuf with emit-on-sync policy set tofalse, wrapped streambuffer set tonullptr, and using default-constructedAllocator as the allocator for temporary storage.std::basic_syncbuf with emit-on-sync policy set tofalse, wrapped streambuffer set toobuf, and usinga as the allocator for temporary storage.std::basic_syncbuf object by moving all contents from anotherstd::basic_syncbuf objectrhs, including the temporary storage, the wrapped stream pointer, policy, and all other state (such as the mutex pointer). After move,rhs is not associated with a stream, andrhs.get_wrapped()== nullptr. The put area member pointers of the base classstd::basic_streambuf ofrhs are guaranteed to be null. Destroying a moved-fromrhs will not produce any output.Contents |
| obuf | - | pointer to thestd::basic_streambuf to wrap |
| a | - | the allocator to use for temporary storage |
| rhs | - | anotherstd::basic_syncbuf to move from |
Typically called by the appropriate constructors ofstd::basic_osyncstream.
| 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] |
| atomically transmits the entire internal buffer to the wrapped streambuf (public member function)[edit] |