| 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 | ||||
basic_iostream::basic_iostream | ||||
| Protected member functions | ||||
explicit basic_iostream(std::basic_streambuf<CharT,Traits>* sb); | (1) | |
basic_iostream(const basic_iostream& other)= delete; | (2) | (since C++11) |
protected: basic_iostream( basic_iostream&& other); | (3) | (since C++11) |
Constructs new stream object.
basic_istream asbasic_istream<CharT,Traits>(std::move(rhs));, which in turn move-constructs and initializes the virtual basestd::basic_ios. The initialization of the other base,basic_ostream, is implementation-defined (e.g., a protected default constructor may be added tostd::basic_ostream, which does nothing) because move-construction cannot userhs twice. This move constructor is protected: it is called by the move constructors of the derived stream classesstd::basic_fstream andstd::basic_stringstream before they move-construct and associate the stream buffer.| sb | - | streambuf to initialize with |
| other | - | another stream to initialize with |
(C++11) | move-assigns anotherbasic_iostream(protected member function)[edit] |