std::basic_iostream::basic_iostream
De cppreference.com
|
|
Esta página se ha traducido por ordenador/computador/computadora de la versión en inglés de la Wiki usando Google Translate.
La traducción puede contener errores y palabras aparatosas/incorrectas. Planea sobre el texto para ver la versión original. Puedes ayudar a corregir los errores y mejorar la traducción. Para instrucciones haz clic aquí. |
explicit basic_iostream( std::basic_streambuf<CharT,Traits>* sb ); |
(1) | |
basic_iostream( const basic_iostream& other ) = delete; |
(2) | (desde C++11) |
protected: basic_iostream( basic_iostream&& other ); |
(3) | (desde C++11) |
Construye objeto de flujo de nuevo .
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)
Inicializa con
sb streambuf. Las clases base se inicializan como basic_istream<CharT,Traits>(sb) y basic_ostream<CharT,Traits>(sb). Después de la llamada rdbuf() == sb y 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 de la construcción no está permitido .
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)
Mueva constructor: move-construye la clase base primero
basic_istream como basic_istream<CharT,Traits>(std::move(rhs));, que a su vez movimientos construye e inicializa el std::basic_ios base virtual. La inicialización de la otra base, basic_ostream, es definido por la implantación (por ejemplo, un constructor predeterminado protegida puede ser añadido a std::basic_ostream, que no hace nada) porque movimiento de construcción no puede rhs utilizar dos veces. Este constructor movimiento está protegido: es llamado por los constructores de las clases de movimiento de flujo y derivados std::basic_fstream std::basic_stringstream antes de pasar-construir y asociar el búfer de la secuencia .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.
Parámetros
| sb | - | streambuf inicializar 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 | - | otro flujo para inicializar 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. |
Ver también
(C++11) |
mover a asignar otro 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. (función miembro pública) |