◐ Shell
clean mode source ↗

std::fpos – cppreference.com

Aus cppreference.com

<metanoindex/>

<tbody> </tbody>

definiert in Header

<ios>

template< class State > class fpos;

Spezialisierungen der Klassen-Template std::fpos identifizieren absoluten Positionen in einem Strom oder in einer Datei. Jedes Objekt vom Typ fpos hält die Byteposition in dem Strom (typischerweise als private Element vom Typ std::streamoff) und den aktuellen Schaltzustand ein Wert vom Typ State (typischerweise 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.

Vier Spezialisierungen std::fpos sind vorgesehen:

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.

definiert in Header <ios>

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.

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>

Member-Funktionen

empfängt / setzt den Wert der Verschiebung Zustand

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.


(öffentliche Elementfunktion)

Darüber hinaus müssen die folgenden Member-Funktionen und Operatoren zur Verfügung gestellt werden, obwohl es nicht angegeben ist, ob sie Mitglieder oder Nicht-Mitglied sind .

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.

  • Ein Konstruktor, der ein Argument vom Typ int akzeptiert .

    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.

  • Ein Konstruktor, der ein Argument vom Typ std::streamoff. Dieser Konstruktor muss auch akzeptieren, den besonderen Wert std::streamoff(-1): die std::fpos auf diese Weise konstruiert wird von einigen Stream zurückgegeben werden, um Fehler anzuzeigen .

    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.

  • Eine Umwandlung Operator, fpos umwandelt std::streamoff mit dem Wert gleich dem von std::fpos(0) Offset .

    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== dass vergleicht zwei Objekte vom Typ std::fpos und gibt einen Wert vom Typ konvertierbar 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!= dass vergleicht zwei Objekte vom Typ std::fpos und gibt einen Wert vom Typ konvertierbar 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+ und operator+= die std::streamoff hinzufügen können, um 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- und operator-= was kann std::streamoff von einem std::fpos subtrahieren

    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- was können zwei Objekte vom Typ std::fpos Herstellung eines std::streamoff subtrahieren

    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.

Siehe auch

stellt relativen Datei / stream Position (Offset von FPOS) ausreichen, um eine beliebige Datei Größe darstellen

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)

gibt die Ausgabe Stellungsanzeige

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.


(öffentliche Elementfunktion of std::basic_ostream) [edit]

setzt den Ausgang Stellungsanzeige

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.


(öffentliche Elementfunktion of std::basic_ostream) [edit]

erhält die Datei Stellungsanzeige

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.


(Funktion) [edit]