Espacios de nombres
Variantes
Acciones

std::fpos

De cppreference.com
< cpp‎ | io

 
 
Entrada / salida de la biblioteca
I / O manipuladores
C-estilo I / O
Buffers
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(obsoleto)
Arroyos
Original:
Streams
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Abstracciones
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
File I / 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
Cadena de 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
Matriz 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(obsoleto)
ostrstream(obsoleto)
strstream(obsoleto)
Tipos
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
Error interfaz categoría
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;
Especializaciones de la plantilla de clase std::fpos identificar las posiciones absolutas en un arroyo o en un archivo. Cada objeto de tipo fpos mantiene la posición de byte en la corriente (por lo general como un miembro privado de std::streamoff tipo) y el estado de cambio actual, un valor de tipo State (normalmente 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.
Cuatro especializaciones de std::fpos están disponibles:
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>
Tipo
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>

[editar] Las funciones miembro

Establece / Obtiene el valor del estado de cambio
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.

(miembro público función)
Además, las siguientes funciones miembro y operadores deben proporcionar, aunque sea sin especificar si son miembros o no miembros .
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 constructor que acepta un argumento de tipo 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 constructor que acepta un argumento de tipo std::streamoff. Este constructor también deben aceptar el std::streamoff(-1) valor especial: el std::fpos construido de esta manera es devuelto por algunas operaciones de secuencia para indicar errores .
    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 operador de conversión que convierte a fpos std::streamoff con el mismo valor para el desplazamiento desde 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== que compara dos objetos de std::fpos tipo y devuelve un valor de tipo convertible a 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!= que compara dos objetos de std::fpos tipo y devuelve un valor de tipo convertible a 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+ y operator+= que puede agregar a 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- y operator-= que puede restar std::streamoff de 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- que puede restar dos objetos de tipo std::fpos produciendo un 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.

[editar] Ver también

representa relativa archivo / flujo de posición (desplazamiento desde FPO), suficiente para representar cualquier tamaño de archivo
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)
devuelve el indicador de posición de salida
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.

(miembro público of std::basic_ostream función) [edit]
establece el indicador de posición de salida
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.

(miembro público of std::basic_ostream función) [edit]
obtiene el indicador de posición del archivo
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.

(función) [edit]