| 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) |
| Member functions | ||||
| State functions | ||||
| Formatting | ||||
| Miscellaneous | ||||
| Protected member functions | ||||
(C++11) | ||||
(C++11) | ||||
basic_ios::set_rdbuf (C++11) |
protected: void set_rdbuf(std::basic_streambuf<CharT,Traits>* sb); | (since C++11) | |
Sets the associated stream buffer tosb without clearing the error state.
This member function is protected: it is called by the move constructors of the derived streams such asstd::basic_ofstream orstd::basic_istringstream, as the final step after constructing the base class and after moving the stream buffer: only the most derived stream class knows how to correctly move the stream buffer, butstd::basic_ios needs to be made aware of the stream's new location so that its public member functions can access it.
Contents |
| sb | - | stream buffer to associate to |
(none)
Throws nothing.
| This section is incomplete Reason: no example |
| manages associated stream buffer (public member function)[edit] |