Espacios de nombres
Variantes
Acciones

Diferencia entre revisiones de «cpp/io/basic ios/rdbuf»

De cppreference.com
< cpp‎ | io‎ | basic ios
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}}
{{ddcl list begin}}
+
{{begin}}
{{ddcl list item | num = 1 |
+
{{| num = 1 |
 
std::basic_streambuf<CharT,Traits>* rdbuf() const;
 
std::basic_streambuf<CharT,Traits>* rdbuf() const;
 
}}
 
}}
{{ddcl list item | num = 2 |
+
{{| 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 );
 
}}
 
}}
{{ddcl list end}}
+
{{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 {{c|NULL}} .|Returns the associated stream buffer. If there is no associated stream buffer, returns {{c|NULL}}.}}
+
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 {{c|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 {{c|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 {{|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===
{{param list begin}}
+
{{begin}}
{{param list item | sb |{{tr| búfer de la secuencia de asociar a| stream buffer to associate to}}}}
+
{{| sb |{{tr| búfer de la secuencia de asociar a| stream buffer to associate to}}}}
{{param list end}}
+
{{end}}
  
 
===Valor de retorno===
 
===Valor de retorno===
{{tr|El búfer de la secuencia asociada, o {{c|NULL}} si no había búfer de la secuencia asociada .|The associated stream buffer, or {{c|NULL}} if there was no associated stream buffer.}}
+
{{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===
{{dcl list begin}}
+
{{begin}}
{{dcl list template | cpp/io/basic_ios/dcl list set_rdbuf}}
+
{{| cpp/io/basic_ios/set_rdbuf}}
{{dcl list end}}
+
{{end}}
  
 
[[de:cpp/io/basic ios/rdbuf]]
 
[[de:cpp/io/basic ios/rdbuf]]

Revisión de 23:20 1 jul 2013

 
 
Biblioteca de E/S
Manipuladores de E/S
E/S estilo C
Búferes
(en desuso en C++98)
Flujos
Abstracciones
E/S de archivos
E/S de cadenas
E/S de arrays
(en desuso en C++98)
(en desuso en C++98)
(en desuso en C++98)
Salida sincronizada
Tipos
Interfaz de categoría de error
(C++11)
 
 
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 .
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.
1)
Devuelve el búfer de la secuencia asociada. Si no hay memoria de flujo asociada, vuelve NULL .
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.
2)
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.

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.

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.

Ejemplo

Ver también

sustituye a la rdbuf sin borrar su estado de error
Original:
replaces the rdbuf without clearing its error state
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 protegida) [editar]