std::basic_...sic_iostream(3)
hey bestie, welcome to the std::basic_...sic_iostream(3) page from the C++ Standard Libary π this is the constructor page, and itβs lowkey iconic.
πΈ NAME πΈ
std::basic_iostream::basic_iostream β std::basic_iostream::basic_iostream π«Ά
β¨ Synopsis β¨
explicit basic_iostream( std::basic_streambuf<CharT,Traits>* sb );
(1)
basic_iostream( const basic_iostream& other ) = delete;
(2) (since C++11)
protected:
(3) (since C++11)
basic_iostream( basic_iostream&& other );
Constructs new stream object. π
- Initializes with streambuf
sb. The base classes are initialized asbasic_istream<CharT,Traits>(sb)andbasic_ostream<CharT,Traits>(sb). After the callrdbuf() == sbandgcount() == 0. β¨ - Copy construction is not allowed. π«
- Move constructor: move-constructs the first base class
basic_istreamasbasic_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 userhstwice. This move constructor is protected: it is called by the move constructors of the derived stream classesstd::basic_fstreamandstd::basic_stringstreambefore they move-construct and associate the stream buffer. π₯
π Parameters π
sbβ streambuf to initialize with πotherβ another stream to initialize with π«Ά
π¦ See also π¦
operator=β move-assigns anotherbasic_iostream(C++11) (protected member function) β
okay bye bestie, source is http://cppreference.com, version/date is 2024.06.10, and the page is std::basic_...sic_iostream(3) β mwah π
π¦ where this page comes from
- nixpkgs unstable: stdman 2024.07.05
- opensuse-leap 16.0: stdman 2024.07.05-bp160.1.9 Β· MIT
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms