std::basic_iostream::basic_iostream
Aus cppreference.com
<metanoindex/>
<tbody> </tbody> explicit basic_iostream( std::basic_streambuf<CharT,Traits>* sb ); |
(1) | |
basic_iostream( const basic_iostream& other ) = delete; |
(2) | (seit C++11) |
protected: basic_iostream( basic_iostream&& other ); |
(3) | (seit C++11) |
Erzeugt neue Stream-Objekt .
Original:
Constructs new stream object.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
1)
Initialisiert mit streambuf
sb. Die Basisklassen als basic_istream<CharT,Traits>(sb) und basic_ostream<CharT,Traits>(sb) initialisiert. Nach dem Aufruf rdbuf() == sb und gcount() == 0 .Original:
Initializes with streambuf
sb. The base classes are initialized as basic_istream<CharT,Traits>(sb) and basic_ostream<CharT,Traits>(sb). After the call rdbuf() == sb and gcount() == 0.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
2)
Kopieren Konstruktion ist nicht erlaubt .
Original:
Copy construction is not allowed.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
3)
Bewegen constructor: Bewegung baut die erste Basisklasse
basic_istream als basic_istream<CharT,Traits>(std::move(rhs));, was wiederum Bewegung konstruiert und initialisiert die virtuelle Basis std::basic_ios. Die Initialisierung der anderen Basis, basic_ostream, ist die Implementierung definiert (zB ein geschützter Standardkonstruktor kann std::basic_ostream, die nichts tut hinzugefügt werden), weil move-Konstruktion nicht verwenden können rhs zweimal. Dieser Schritt Konstruktor geschützt ist: es wird durch die Bewegung Konstruktoren der abgeleiteten Stream-Klassen genannt std::basic_fstream und std::basic_stringstream bevor sie sich bewegen-Konstrukt und ordnen Sie die Strom-Puffer .Original:
Move constructor: move-constructs the first base class
basic_istream as basic_istream<CharT,Traits>(std::move(rhs));, which in turn move-constructs and initializes the virtual base std::basic_ios. The initialization of the other base, basic_ostream, is implementation-defined (e.g., a protected default constructor may be added to std::basic_ostream, which does nothing) because move-construction cannot use rhs twice. This move constructor is protected: it is called by the move constructors of the derived stream classes std::basic_fstream and std::basic_stringstream before they move-construct and associate the stream buffer.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Parameter
| sb | - | streambuf mit initialisieren
Original: streambuf to initialize with The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| other | - | ein anderer Strom mit initialisieren
Original: another stream to initialize with The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
