Diferencia entre revisiones de «cpp/io/basic ios/rdbuf»
De cppreference.com
m (r2.7.3) (Bot Añadido: de, en, fr, it, ja, pt, ru, zh) |
m (Use {{lc}}. Update links. Various fixes.) |
||
Línea 2: | Línea 2: | ||
{{cpp/io/basic_ios/title|rdbuf}} | {{cpp/io/basic_ios/title|rdbuf}} | ||
{{cpp/io/basic_ios/navbar}} | {{cpp/io/basic_ios/navbar}} | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| num = 1 | |
std::basic_streambuf<CharT,Traits>* rdbuf() const; | std::basic_streambuf<CharT,Traits>* rdbuf() const; | ||
}} | }} | ||
− | {{ | + | {{| num = 2 | |
std::basic_streambuf<CharT,Traits>* rdbuf( std::basic_streambuf<CharT,Traits>* sb ); | std::basic_streambuf<CharT,Traits>* rdbuf( std::basic_streambuf<CharT,Traits>* sb ); | ||
}} | }} | ||
− | {{ | + | {{end}} |
{{tr|Administra la memoria de flujo asociada .|Manages the associated stream buffer.}} | {{tr|Administra la memoria de flujo asociada .|Manages the associated stream buffer.}} | ||
− | 1) {{tr|Devuelve el búfer de la secuencia asociada. Si no hay memoria de flujo asociada, vuelve {{ | + | 1) {{tr|Devuelve el búfer de la secuencia asociada. Si no hay memoria de flujo asociada, vuelve {{|NULL}} .|Returns the associated stream buffer. If there is no associated stream buffer, returns {{|NULL}}.}} |
− | 2) {{tr|Establece el búfer de la secuencia asociada a {{tt|sb}}. El estado de error se borra {{tt|sb}} llamando {{c|sb.clear()}}. Devuelve el búfer de la secuencia asociada antes de la operación. Si no hay memoria de flujo asociada, vuelve {{ | + | 2) {{tr|Establece el búfer de la secuencia asociada a {{tt|sb}}. El estado de error se borra {{tt|sb}} llamando {{c|sb.clear()}}. Devuelve el búfer de la secuencia asociada antes de la operación. Si no hay memoria de flujo asociada, vuelve {{|NULL}} .|Sets the associated stream buffer to {{tt|sb}}. The error state of {{tt|sb}} is cleared by calling {{c|sb.clear()}}. Returns the associated stream buffer before the operation. If there is no associated stream buffer, returns {{|NULL}}.}} |
===Parámetros=== | ===Parámetros=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| sb |{{tr| búfer de la secuencia de asociar a| stream buffer to associate to}}}} |
− | {{ | + | {{end}} |
===Valor de retorno=== | ===Valor de retorno=== | ||
− | {{tr|El búfer de la secuencia asociada, o {{ | + | {{tr|El búfer de la secuencia asociada, o {{|NULL}} si no había búfer de la secuencia asociada .|The associated stream buffer, or {{|NULL}} if there was no associated stream buffer.}} |
===Excepciones=== | ===Excepciones=== | ||
Línea 35: | Línea 35: | ||
===Ver también=== | ===Ver también=== | ||
− | {{ | + | {{begin}} |
− | {{ | + | {{| cpp/io/basic_ios/set_rdbuf}} |
− | {{ | + | {{end}} |
[[de:cpp/io/basic ios/rdbuf]] | [[de:cpp/io/basic ios/rdbuf]] |
Revisión de 23:20 1 jul 2013
![]() |
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í. |
std::basic_streambuf<CharT,Traits>* rdbuf() const; |
(1) | |
std::basic_streambuf<CharT,Traits>* rdbuf( std::basic_streambuf<CharT,Traits>* sb ); |
(2) | |
Administra la memoria de flujo asociada .
1) Original:
Manages the associated 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.
Devuelve el búfer de la secuencia asociada. Si no hay memoria de flujo asociada, vuelve NULL .
2) Original:
Returns the associated stream buffer. If there is no associated stream buffer, returns NULL.
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.
Establece el búfer de la secuencia asociada a
sb
. El estado de error se borra sb
llamando sb.clear(). Devuelve el búfer de la secuencia asociada antes de la operación. Si no hay memoria de flujo asociada, vuelve NULL .Original:
Sets the associated stream buffer to
sb
. The error state of sb
is cleared by calling sb.clear(). Returns the associated stream buffer before the operation. If there is no associated stream buffer, returns NULL.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.
Contenido |
Parámetros
sb | - | búfer de la secuencia de asociar a
Original: stream buffer to associate to The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Valor de retorno
El búfer de la secuencia asociada, o NULL si no había búfer de la secuencia asociada .
Original:
The associated stream buffer, or NULL if there was no associated 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.
Excepciones
(Ninguno)
Original:
(none)
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.
Ejemplo
Esta sección está incompleta Razón: sin ejemplo |
Ver también
sustituye a la rdbuf sin borrar su estado de errorOriginal: replaces the rdbuf without clearing its error stateThe text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función miembro protegida) |