std::basic_iostream::basic_iostream
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody> explicit basic_iostream( std::basic_streambuf<CharT,Traits>* sb ); |
(1) | |
basic_iostream( const basic_iostream& other ) = delete; |
(2) | (dal C++11) |
protected: basic_iostream( basic_iostream&& other ); |
(3) | (dal C++11) |
Costruisce nuovo oggetto flusso.
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)
Inizializza con
sb streambuf. Le classi base vengono inizializzati come basic_istream<CharT,Traits>(sb) e basic_ostream<CharT,Traits>(sb). Dopo la chiamata rdbuf() == sb e 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)
Copia costruzione non è permesso.
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)
Spostare costruttore: move-costruisce la prima classe di base
basic_istream come basic_istream<CharT,Traits>(std::move(rhs));, che a sua volta si muovono-costruisce e inizializza il std::basic_ios base virtuale. L'inizializzazione della base di altri, basic_ostream, è l'attuazione definito (ad esempio, un costruttore predefinito protetta può essere aggiunto al std::basic_ostream, che non fa niente), perché movimento di costruzione non può rhs utilizzare due volte. Questo costruttore mossa è protetta: viene chiamato dai costruttori movimento delle classi stream derivate std::basic_fstream e std::basic_stringstream prima di passare-costruire e associare il buffer del flusso.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.
Parametri
| sb | - | streambuf inizializzare con
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 | - | un altro flusso inizializzare con
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. |
Vedi anche
(C++11) |
spostare-assegna un altro basic_iostream Original: move-assigns another basic_iostream The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (metodo pubblico) |