◐ Shell
clean mode source ↗

std::ios_base — cppreference.com

De cppreference.com

<metanoindex/>

<tbody> </tbody>

Déclaré dans l'en-tête

<ios>

class ios_base;

Le ios_base classe est une classe polyvalente qui sert de classe de base pour toutes les classes de flux d'E / S. Il maintient plusieurs types de données:

Original:

The class ios_base is a multipurpose class that serves as the base class for all I/O stream classes. It maintains several kinds of data:

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

1)

informations d'état: indicateurs d'état des cours d'eau

Original:

state information: stream status flags

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

2)

informations de contrôle: indicateurs qui contrôlent la mise en forme à la fois d'entrée et de sortie des séquences et les paramètres régionaux imprégnée

Original:

control information: flags that control formatting of both input and output sequences and the imbued locale

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

3)

stockage privé: indexé structure extensible qui permet à la fois de données long et les membres void*, qui peut être mis en œuvre sous forme de deux tableaux de longueur arbitraire ou un tableau de deux éléments struct ou un autre récipient .

Original:

private storage: indexed extensible data structure that allows both long and void* members, which may be implemented as two arbitrary-length arrays or a single array of two-element structs or another container.

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

4)

rappels: nombre arbitraire de fonctions définies par l'utilisateur pour être appelés à partir imbue (), copyfmt (), et ~ ios_base ()

Original:

callbacks: arbitrary number of user-defined functions to be called from imbue(), copyfmt(), and ~ios_base()

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Mise en œuvre typique détient constantes membre correspondant à toutes les valeurs de fmtflags, iostate, openmode et seekdir-dessous, les variables membres pour maintenir la précision actuelle, la largeur et codes de formatage, le masque d'exception, l'état d'erreur de tampon, un conteneur redimensionnable la tenue des rappels, de la locale courante imprégné, le stockage privé, et une variable statique entier pour xalloc () .

Original:

Typical implementation holds member constants corresponding to all values of fmtflags, iostate, openmode, and seekdir shown below, member variables to maintain current precision, width, and formatting flags, the exception mask, the buffer error state, a resizeable container holding the callbacks, the currently imbued locale, the private storage, and a static integer variable for xalloc().

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Fonctions membres

Construit l'objet

Original:

constructs the object

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(fonction membre protégée) [edit]

[

virtuel

Original:

virtual

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

]

Détruit l'objet

Original:

destructs the object

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(function membre virtuelle publique) [edit]

Mise en forme

Original:

Formatting

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

gère indicateurs de format

Original:

manages format flags

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) [edit]

active l'indicateur de format spécifique

Original:

sets specific format flag

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) [edit]
clears specific format flag
(fonction membre publique) [edit]

gère précision décimale des opérations en virgule flottante

Original:

manages decimal precision of floating point operations

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) [edit]
manages field width
(fonction membre publique) [edit]

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.

fixe locale

Original:

sets locale

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) [edit]

retourne localisation en cours

Original:

returns current locale

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) [edit]

Interne gamme extensible

Original:

Internal extensible array

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[

statique

Original:

static

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

]

renvoie un entier ensemble du programme unique qui est sûr à utiliser comme indice de motpasse () et iword ()

Original:

returns a program-wide unique integer that is safe to use as index to pword() and iword()

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 statique) [edit]

redimensionne le stockage privé et le cas échéant un accès à l'élément de long à l'index donné

Original:

resizes the private storage if necessary and access to the long element at the given index

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) [edit]

redimensionne le stockage privé et le cas échéant un accès à l'élément de void* à l'index donné

Original:

resizes the private storage if necessary and access to the void* element at the given index

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) [edit]

Divers

Original:

Miscellaneous

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

enregistre fonction de rappel d'événement

Original:

registers event callback function

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) [edit]

[

statique

Original:

static

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

]

définit si le C + + et C des bibliothèques d'entrées-sorties sont interopérables

Original:

sets whether C++ and C IO libraries are interoperable

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 statique) [edit]

Classes de membres

Original:

Member classes

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

exception ruisseau

Original:

stream exception

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(classe membre publique) [edit]

initialise les objets de flux standard

Original:

initializes standard stream objects

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(classe membre publique) [edit]

Types de membres et de constantes

Original:

Member types and constants

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

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.

Explanation

type de mode de flux ouvert Les constantes suivantes sont également définis:

Original:

stream open mode type The following constants are also defined:

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Constante

Original:

Constant

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Explanation[edit]
app

demander à l'extrémité du flux avant chaque écriture

Original:

seek to the end of stream before each write

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
binary

ouvrir en mode binaire

Original:

open in binary mode

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
in

ouvrir en lecture

Original:

open for reading

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
out

ouvrir en écriture

Original:

open for writing

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
trunc

jeter le contenu du courant lors de l'ouverture

Original:

discard the contents of the stream when opening

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
ate

demander à l'extrémité du flux immédiatement après ouverture

Original:

seek to the end of stream immediately after open

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]

(typedef) [edit]

la mise en forme des drapeaux de type Les constantes suivantes sont également définis:

Original:

formatting flags type The following constants are also defined:

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Constante

Original:

Constant

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Explanation[edit]
dec

utiliser la base décimale pour l'entier I / O

Original:

use decimal base for integer I/O

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
oct

utiliser octal de base pour l'entier I / O

Original:

use octal base for integer I/O

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
hex

utiliser la base hexadécimale entier I / O

Original:

use hexadecimal base for integer I/O

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
basefield

dec|oct|hex|0. Utile pour masquer les opérations

Original:

dec|oct|hex|0. Useful for masking operations

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
left

réglage gauche (ajoute des caractères de remplissage à droite)

Original:

left adjustment (adds fill characters to the right)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
right

réglage de droite (ajoute des caractères de remplissage à gauche)

Original:

right adjustment (adds fill characters to the left)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
internal

ajustement interne (ajoute des caractères de remplissage au point interne désignée)

Original:

internal adjustment (adds fill characters to the internal designated point)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
adjustfield

left|right|internal. Utile pour masquer les opérations

Original:

left|right|internal. Useful for masking operations

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
scientific

générer des types virgule flottante en utilisant la notation scientifique, ou une notation hexadécimale s'il est combiné avec fixe

Original:

generate floating point types using scientific notation, or hex notation if combined with fixed

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
fixed

générer des types virgule flottante en utilisant la notation fixe ou notation hexadécimale si elle est combinée avec les scientifiques

Original:

generate floating point types using fixed notation, or hex notation if combined with scientific

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
floatfield

scientific|fixed|(scientific|fixed)|0. Utile pour masquer les opérations

Original:

scientific|fixed|(scientific|fixed)|0. Useful for masking operations

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
boolalpha

insérer et d'extraire de type bool au format alphanumérique

Original:

insert and extract bool type in alphanumeric format

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
showbase

générer un préfixe indiquant la base numérique pour la sortie de nombre entier, nécessitent l'indicateur monnaie monétaire I / O

Original:

generate a prefix indicating the numeric base for integer output, require the currency indicator in monetary I/O

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
showpoint

générer un caractère point décimal sans condition pour la sortie de nombre à virgule flottante

Original:

generate a decimal-point character unconditionally for floating-point number output

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
showpos

générer un caractère + pour les non-négative de sortie numérique

Original:

generate a + character for non-negative numeric output

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
skipws

sauter espaces en tête avant les opérations d'entrée de certains

Original:

skip leading whitespace before certain input operations

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
unitbuf

rincer la sortie après chaque opération de sortie

Original:

flush the output after each output operation

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
uppercase

remplacer certaines lettres minuscules avec leurs uppercase
equivalents dans certaines opérations de sortie de sortie

Original:

replace certain lowercase letters with their uppercase
equivalents in certain output output operations

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]

(typedef) [edit]

état du type de flux Les constantes suivantes sont également définis:

Original:

state of the stream type The following constants are also defined:

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Constante

Original:

Constant

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Explanation[edit]
goodbit

pas d'erreur

Original:

no error

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
badbit

erreur de flux irrécupérables

Original:

irrecoverable stream error

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
failbit

d'entrée / sortie de l'opération a échoué (erreur de formatage ou d'extraction)

Original:

input/output operation failed (formatting or extraction error)

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
eofbit

séquence d'entrée associé a atteint la fin de fichier

Original:

associated input sequence has reached end-of-file

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]

(typedef) [edit]

cherchant type de direction Les constantes suivantes sont également définis:

Original:

seeking direction type The following constants are also defined:

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Constante

Original:

Constant

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Explanation[edit]
beg

le début d'un flux

Original:

the beginning of a stream

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
end

la fin d'un cours d'eau

Original:

the ending of a stream

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]
cur

la position actuelle de l'indicateur de position courant

Original:

the current position of stream position indicator

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[edit]

(typedef) [edit]

spécifie le type d'événement

Original:

specifies event type

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(enum) [edit]

callback type de fonction

Original:

callback function type

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.


(typedef) [edit]

Obsolète types de membres

Original:

Deprecated member types

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

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.

Explanation
io_state (obsolète)

type entier qui peut être utilisé comme iostate

Original:

integer type that may be used like iostate

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

open_mode (obsolète)

type entier qui peut être utilisé comme openmode

Original:

integer type that may be used like openmode

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

seek_dir (obsolète)

type entier qui peut être utilisé comme seekdir

Original:

integer type that may be used like seekdir

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

streamoff (obsolète)

type non spécifié qui peut être utilisé comme off_type, pas nécessairement std::streamoff

Original:

unspecified type that may be used like off_type, not necessarily std::streamoff

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

streampos (obsolète)

type non spécifié qui peut être utilisé comme pos_type, pas nécessairement std::streampos

Original:

unspecified type that may be used like pos_type, not necessarily std::streampos

The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.