std::basic_filebuf::showmanyc
De cppreference.com
< cpp | io | basic filebuf
![]() |
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
protected: virtual std::streamsize showmanyc() |
||
Si elles sont appliquées, retourne le nombre de caractères restants pour lire le fichier .
Original:
If implemented, returns the number of characters left to read from the file.
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.
Sommaire |
[modifier] Paramètres
(Aucun)
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.
[modifier] Retourne la valeur
Le nombre de caractères disponibles pour la lecture du fichier, ou si -1 la fin du fichier a été atteint .
Original:
The number of characters available for reading from the file, or -1 if the end of file was reached.
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.
[modifier] Notes
Cette fonction est optionnelle. Si ce n'est pas mis en œuvre, cette fonction retourne 0 (depuis la version de base std::basic_streambuf::showmanyc classe est appelée)
Original:
This function is optional. If not implemented, this function returns 0 (since the base class version std::basic_streambuf::showmanyc gets called)
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.
Que ce soit ou non mis en œuvre, cette fonction est normalement appelé par std::basic_streambuf::in_avail si la zone est vide .. get
Original:
Whether implemented or not, this function is normally called by std::basic_streambuf::in_avail if the get area is empty.
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.
[modifier] Exemple
test de mise en œuvre pour voir si showmanyc () est mis en œuvre pour filebuf
Original:
implementation test to see if showmanyc() is implemented for filebuf
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.
#include <fstream> #include <iostream> struct mybuf : std::filebuf { using std::filebuf::showmanyc; }; int main() { mybuf fin; fin.open("test.in", std::ios_base::in); std::cout << "showmanyc() returns " << fin.showmanyc() << '\n'; }
Résultat :
showmanyc() returns 6626
[modifier] Voir aussi
obtient le nombre de caractères disponibles immédiatement dans la zone d'obtention Original: obtains the number of characters immediately available in the get area The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique de std::basic_streambuf )
| |
extrait des blocs déjà disponibles de caractères Original: extracts already available blocks of characters The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (fonction membre publique de std::basic_istream )
|