Espacios de nombres
Variantes
Acciones

std::basic_streambuf<CharT,Traits>::~basic_streambuf

De cppreference.com
< cpp‎ | io‎ | basic streambuf
 
 
 
std::basic_streambuf
Las funciones públicas miembros
Original:
Public member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_streambuf::~basic_streambuf
Locales
Original:
Locales
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Posicionamiento
Original:
Positioning
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Obtenga zona
Original:
Get area
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Ponga zona
Original:
Put area
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Dos puntos
Original:
Putback
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Protegido funciones miembro
Original:
Protected member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Locales
Original:
Locales
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Posicionamiento
Original:
Positioning
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Obtenga zona
Original:
Get area
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Ponga zona
Original:
Put area
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Dos puntos
Original:
Putback
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
virtual ~basic_streambuf();
Esta destrucción está vacía: los miembros de esta basic_streambuf (los punteros y la configuración regional) se destruyen de acuerdo con la secuencia objeto destrucción de costumbre después de esto vuelve destructor. Sin embargo, puesto que se ha declarado público virtual, que permite que los objetos que se derivan de std::basic_streambuf a ser eliminada a través de un puntero a la clase base .
Original:
This destruction is empty: the members of this basic_streambuf (the pointers and the locale) are destructed in accordance with the usual object destruction sequence after this destructor returns. However, since it is declared public virtual, it allows the objects that are derived from std::basic_streambuf to be deleted through a pointer to base class.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar]Parámetros

(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.

[editar]Ejemplo

#include <iostream>#include <fstream>   int main(){std::filebuf* fbp = new std::filebuf; fbp->open("test.txt", std::ios_base::out); fbp->sputn("Hello\n", 6);std::streambuf* sbp = fbp; delete sbp;// the file is closed, output flushed and writtenstd::ifstream f("test.txt");std::cout<< f.rdbuf();// proof}

Salida:

Hello


[editar]Ver también

Construye un objeto basic_streambuf.
(función miembro protegida)[editar]
close