Espaces de noms
Variantes
Affichages
Actions

std::fpos

De cppreference.com
< cpp‎ | io

 
 
D'entrée / sortie de bibliothèque
I / O manipulateurs
C-style I / O
Tampons
Original:
Buffers
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_filebuf
basic_stringbuf
strstreambuf (obsolète)
Cours d'eau
Original:
Streams
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Abstractions
Original:
Abstractions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
ios_base
basic_ios
basic_istream
basic_ostream
basic_iostream
Fichier E / O
Original:
File I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_ifstream
basic_ofstream
basic_fstream
Chaîne I / O
Original:
String I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
basic_istringstream
basic_ostringstream
basic_stringstream
Tableau I / O
Original:
Array I/O
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
istrstream (obsolète)
ostrstream (obsolète)
strstream (obsolète)
Types
Original:
Types
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
streamoff
streamsize
fpos
Interface catégorie d'erreur
Original:
Error category interface
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iostream_category (C++11)
io_errc (C++11)
 
Defined in header <ios>
template< class State >
class fpos;
Spécialités de la classe template std::fpos identifier les positions absolues dans un ruisseau ou dans un fichier. Chaque objet de fpos type contient la position de l'octet dans le flux (typiquement en tant que membre privé de std::streamoff type) et l'état de décalage de courant, une valeur de type State (généralement std::mbstate_t) .
Original:
Specializations of the class template std::fpos identify absolute positions in a stream or in a file. Each object of type fpos holds the byte position in the stream (typically as a private member of type std::streamoff) and the current shift state, a value of type State (typically std::mbstate_t).
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Quatre spécialisations de std::fpos sont fournis:
Original:
Four specializations of std::fpos are provided:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Defined in header <ios>
Type d'
Original:
Type
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Definition
streampos std::fpos<std::char_traits<char>::state_type>
u16streampos std::fpos<std::char_traits<char16_t>::state_type>
u32streampos std::fpos<std::char_traits<char32_t>::state_type>
wstreampos std::fpos<std::char_traits<wchar_t>::state_type>

[modifier] Fonctions membres

obtient / définit la valeur de l'état de décalage
Original:
gets/sets the value of the shift state
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)
En outre, les fonctions membres et opérateurs suivants doivent être fournis, même si c'est non précisé s'ils sont membres ou non membres .
Original:
In addition, the following member functions and operators must be provided, although it's unspecified if they are members or non-member.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
  • Un constructeur qui accepte un argument de type .. int
    Original:
    A constructor that accepts an argument of type int.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • Un constructeur qui accepte un argument de std::streamoff type. Ce constructeur doit également accepter le std::streamoff(-1) valeur particulière: la std::fpos construit de cette manière est retourné par certaines opérations de flux pour indiquer les erreurs .
    Original:
    A constructor that accepts an argument of type std::streamoff. This constructor must also accept the special value std::streamoff(-1): the std::fpos constructed in this manner is returned by some stream operations to indicate errors.
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • Un opérateur de conversion qui convertit fpos à std::streamoff avec la valeur égale au décalage de std::fpos(0) .
    Original:
    A conversion operator that converts fpos to std::streamoff with the value equal to the offset from std::fpos(0).
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • operator== qui compare deux objets de std::fpos type et retourne une valeur de type convertible en bool
    Original:
    operator== that compares two objects of type std::fpos and returns a value of type convertible to bool
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • operator!= qui compare deux objets de std::fpos type et retourne une valeur de type convertible en bool
    Original:
    operator!= that compares two objects of type std::fpos and returns a value of type convertible to bool
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • operator+ et operator+= ce qui peut ajouter à std::streamoff std::fpos
    Original:
    operator+ and operator+= which can add std::streamoff to std::fpos
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • operator- et operator-= qui peut soustraire std::streamoff d'un std::fpos
    Original:
    operator- and operator-= which can subtract std::streamoff from an std::fpos
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • operator- qui peut soustraire deux objets de std::fpos de type produisant une std::streamoff
    Original:
    operator- which can subtract two objects of type std::fpos producing an std::streamoff
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.

[modifier] Voir aussi

représente par rapport fichier / flux de position (décalage par rapport FPO), suffisante pour représenter toute la taille du fichier
Original:
represents relative file/stream position (offset from fpos), sufficient to represent any file size
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(typedef)
renvoie l'indicateur de position de sortie
Original:
returns the output position indicator
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_ostream) [edit]
définit l'indicateur de position de sortie
Original:
sets the output position indicator
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_ostream) [edit]
obtient l'indicateur de position
Original:
gets the file position indicator
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(fonction) [edit]