◐ Shell
clean mode source ↗

std::ios_base – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

definiert in Header

<ios>

class ios_base;

Die Klasse ios_base ist ein Mehrzweck-Klasse, die als Basisklasse für alle I / O-Stream-Klassen dient. Es unterhält mehrere Arten von Daten:

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)

Status-Informationen: stream Status-Flags

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)

Steuerinformationen: flags, die Formatierung der Ein-und Ausgabe-Sequenzen und der durchdrungen locale steuern

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)

private Lagerhaltung: indexed erweiterbare Datenstruktur, die sowohl long und void* Mitglieder, die als zwei beliebige Länge Arrays oder einem einzigen Array von zwei Elementen Strukturen oder anderen Behälter durchgeführt werden können ermöglicht .

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)

Rückrufe: beliebige Anzahl von benutzerdefinierten Funktionen aus imbue (), copyfmt () aufgerufen werden, und ~ 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.

Typische Implementierung hält Element Konstanten entsprechend allen Werten fmtflags, iostate, openmode und seekdir unten Elementvariablen um aktuelle Genauigkeit, Breite und Formatierung Flaggen, die Ausnahme-Maske, den Puffer Fehlerzustand, einen resizeable Behälterhalteeinrichtung die Rückrufe aufrechtzuerhalten gezeigten die derzeit durchdrungen locale, die private Lagerhaltung und eine statische Integer-Variable für 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.

Member-Funktionen

Baut das Objekt

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.


(geschützt Member-Funktion) [edit]

[virtuell]

zerstört sich das Objekt

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.


(virtuellen öffentlichen Member-Funktion) [edit]

Formatierung

Original:

Formatting

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

verwaltet Format Fahnen

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.


(öffentliche Elementfunktion) [edit]

setzt bestimmten Format Flagge

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.


(öffentliche Elementfunktion) [edit]
clears specific format flag
(öffentliche Elementfunktion) [edit]

verwaltet Nachkommastellen von Fließkomma-Operationen

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.


(öffentliche Elementfunktion) [edit]
manages field width
(öffentliche Elementfunktion) [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.

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


(öffentliche Elementfunktion) [edit]

kehrt momentanen Locale

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.


(öffentliche Elementfunktion) [edit]

Interne erweiterbare Array

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.

[statisch]

kehrt ein Programm-weit eindeutige Zahl, die sicher als Index PWord () und iword () verwenden

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.


(public static Elementfunktion) [edit]

die Größe der privaten Lagerhaltung bei Bedarf und Zugang zum long Element am angegebenen Index

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.


(öffentliche Elementfunktion) [edit]

die Größe der privaten Lagerhaltung bei Bedarf und Zugang zum void* Element am angegebenen Index

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.


(öffentliche Elementfunktion) [edit]

Verschiedenes

Original:

Miscellaneous

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

registers event callback function
(öffentliche Elementfunktion) [edit]

legt fest, ob C + + und C IO Libraries interoperabel sind

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.


(public static Elementfunktion) [edit]

Mitglied Klassen

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.

Stream Ausnahme

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.


(öffentlichen Member der Klasse) [edit]

initialisiert Standard-Stream-Objekten

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.


(öffentlichen Member der Klasse) [edit]

Mitglied Typen und Konstanten

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

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

Stream offenen Modus-Typ

Die folgenden Konstanten sind ebenfalls definiert:

Constant

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

versuchen Ende Strom vor jedem Schreibvorgang

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

Öffnen Sie im Binär-Modus

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

zum Lesen öffnen

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

zum Schreiben geöffnet

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

Verwerfen der Inhalt des Stroms beim Öffnen

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

versuchen Ende Stromes unmittelbar nach geöffnet

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]

Original:

stream open mode type

The following constants are also defined:

Constant

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

versuchen Ende Strom vor jedem Schreibvorgang

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

Öffnen Sie im Binär-Modus

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

zum Lesen öffnen

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

zum Schreiben geöffnet

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

Verwerfen der Inhalt des Stroms beim Öffnen

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

versuchen Ende Stromes unmittelbar nach geöffnet

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]

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


(typedef) [edit]

Formatierung flags Typ

Die folgenden Konstanten sind ebenfalls definiert:

Constant

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

Verwenden Dezimalbasis für Integer-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

oktale Basis für integer 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

verwenden hexadezimale Basis für integer 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. Nützlich für Maskierung Operationen

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

linken Einstellung (fügt Füllzeichen auf der rechten Seite)

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

richtige Einstellung (fügt Füllzeichen auf der linken Seite)

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

interne Justierung (fügt Füllzeichen auf die interne bestimmten Punkt)

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. Nützlich für Maskierung Operationen

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

erzeugen Gleitkommatypen wissenschaftlicher Notation oder Hex-Notation, wenn mit festen kombiniert

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

erzeugen Gleitkommatypen mit festen Notation oder Hex-Notation, wenn sie mit wissenschaftlichen kombiniert

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. Nützlich für Maskierung Operationen

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

einfügen und extrahieren bool Art im alphanumerischen Format

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

erzeugen ein Präfix die numerische Basis für Integer-Leistung erfordern die Währung Indikator im monetären 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

erzeugen einen Dezimalpunkt Charakter bedingungslos für Fließkommazahl ausgegeben

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

erzeugen eine + Zeichen für nicht-negative numerische Ausgabe

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

überspringen führenden Leerzeichen vor bestimmten Input Operationen

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

Spülen Sie die Ausgabe nach jedem Ausgabe-Operation

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

ersetzen bestimmte Kleinbuchstaben mit ihren uppercase
equivalents in bestimmten Ausgang Ausgang Operationen

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]

Original:

formatting flags type

The following constants are also defined:

Constant

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

Verwenden Dezimalbasis für Integer-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

oktale Basis für integer 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

verwenden hexadezimale Basis für integer 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. Nützlich für Maskierung Operationen

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

linken Einstellung (fügt Füllzeichen auf der rechten Seite)

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

richtige Einstellung (fügt Füllzeichen auf der linken Seite)

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

interne Justierung (fügt Füllzeichen auf die interne bestimmten Punkt)

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. Nützlich für Maskierung Operationen

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

erzeugen Gleitkommatypen wissenschaftlicher Notation oder Hex-Notation, wenn mit festen kombiniert

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

erzeugen Gleitkommatypen mit festen Notation oder Hex-Notation, wenn sie mit wissenschaftlichen kombiniert

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. Nützlich für Maskierung Operationen

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

einfügen und extrahieren bool Art im alphanumerischen Format

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

erzeugen ein Präfix die numerische Basis für Integer-Leistung erfordern die Währung Indikator im monetären 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

erzeugen einen Dezimalpunkt Charakter bedingungslos für Fließkommazahl ausgegeben

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

erzeugen eine + Zeichen für nicht-negative numerische Ausgabe

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

überspringen führenden Leerzeichen vor bestimmten Input Operationen

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

Spülen Sie die Ausgabe nach jedem Ausgabe-Operation

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

ersetzen bestimmte Kleinbuchstaben mit ihren uppercase
equivalents in bestimmten Ausgang Ausgang Operationen

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]

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


(typedef) [edit]

Stand der Stream-Typ

Die folgenden Konstanten sind ebenfalls definiert:

Constant

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

kein Fehler

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

uneinbringlich Stream Fehler

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

Input / Output-Vorgang ist fehlgeschlagen (Formatierung oder Extraktion Fehler)

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

assoziiert Eingabesequenz hat end-of-Datei erreicht

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]

Original:

state of the stream type

The following constants are also defined:

Constant

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

kein Fehler

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

uneinbringlich Stream Fehler

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

Input / Output-Vorgang ist fehlgeschlagen (Formatierung oder Extraktion Fehler)

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

assoziiert Eingabesequenz hat end-of-Datei erreicht

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]

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


(typedef) [edit]
seeking direction type

The following constants are also defined:

Constant

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

der Beginn einer Stream

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

das Ende eines Streams

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

die aktuelle Position des Stroms Stellungsanzeige

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]

legt Event-Typ

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-Funktion aus

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]

Veraltet Mitglied Typen

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

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(veraltet)

Ganzzahltyp, wie iostate verwendet werden können

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(veraltet)

Ganzzahltyp, wie openmode verwendet werden können

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(veraltet)

Ganzzahltyp, wie seekdir verwendet werden können

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(veraltet)

nicht angegebenen Typ, der wie off_type verwendet werden kann, nicht notwendigerweise 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(veraltet)

nicht angegebenen Typ, der wie pos_type verwendet werden kann, nicht notwendigerweise 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.