std::basic_filebuf::basic_filebuf - cppreference.com
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>
|
|
(1) | |
|
|
(2) | |
|
|
(3) | (dal C++11) |
1)
Costruisce un oggetto std::basic_filebuf, l'inizializzazione della classe base chiamando il costruttore predefinito di std::basic_streambuf. Il basic_filebuf creato non è associato a un file e ritorna is_open() false.
Original:
Constructs a std::basic_filebuf object, initializing the base class by calling the default constructor of std::basic_streambuf. The created basic_filebuf is not associated with a file, and is_open() returns false.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Il costruttore di copia è soppresso; std::basic_filebuf non è CopyConstructible
Original:
The copy constructor is deleted; std::basic_filebuf is not CopyConstructible
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
Move-costruisce un oggetto std::basic_filebuf spostando tutto il contenuto da un altro oggetto std::basic_filebuf rhs, compresi i buffer, il file associato, il locale, il openMode, la variabile is_open, e tutto altro Stato. Dopo la mossa, rhs non è associato a un file e rhs.is_open()==false. I puntatori membri della classe base std::basic_streambuf di rhs e della classe base di *this sono garantiti per puntare al buffer differenti (a meno che non null).
Original:
Move-constructs a std::basic_filebuf object by moving all contents from another std::basic_filebuf object rhs, including the buffers, the associated file, the locale, the openmode, the is_open variable, and all other state. After move, rhs is not associated with a file and rhs.is_open()==false. The member pointers of the base class std::basic_streambuf of rhs and of the base class of *this are guaranteed to point to different buffers (unless null).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Parametri
| rhs | - | un altro Original: another The text has been machine-translated via Google Translate. |
Note
In genere chiamato dal costruttore di std::basic_fstream.
Original:
Typically called by the constructor of std::basic_fstream.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Esempio
Vedi anche
assegna un oggetto basic_filebuf Original: assigns a basic_filebuf object The text has been machine-translated via Google Translate. (metodo pubblico) [modifica] | |
distrugge un oggetto basic_filebuf e chiude il file se è aperto Original: destructs a basic_filebuf object and closes the file if it is open The text has been machine-translated via Google Translate. (metodo pubblico virtuale) [modifica] | |