std::basic_ostream
De cppreference.com
|
|
This page has been machine-translated from the English version of the wiki using Google Translate.
The translation may contain errors and awkward wording. Hover over text to see the original version. You can help to fix errors and improve the translation. For instructions click here. |
| Defined in header <ostream>
|
||
| template< class CharT, |
||
La plantilla de clase
basic_ostream proporciona soporte para operaciones de alta nivel de salida de flujos de caracteres. Las operaciones soportadas incluyen la salida con formato (por ejemplo, valores enteros) y la salida sin formato (por ejemplo, caracteres primas y matrices de caracteres). Esta funcionalidad se implementa en términos de la interfaz proporcionada por la clase basic_streambuf, accede a través de la clase base basic_ios. En las implementaciones típicas, basic_ostream no tiene no heredados miembros de datos .Original:
The class template
basic_ostream provides support for high level output operations on character streams. The supported operations include formatted output (e.g. integer values) and unformatted output (e.g. raw characters and character arrays). This functionality is implemented in terms of the interface provided by the basic_streambuf class, accessed through the basic_ios base class. In typical implementations, basic_ostream has no non-inherited data members.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
Dos especializaciones para tipos de caracteres comunes también están definidos:
Original:
Two specializations for common character types 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.
You can help to correct and verify the translation. Click here for instructions.
| Defined in header
<ostream> | |
| 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 |
ostream
|
basic_ostream<char> |
wostream
|
basic_ostream<wchar_t> |
[editar] Los objetos globales
Seis objetos globales basic_ostream son proporcionados por la biblioteca estándar .
Original:
Six global basic_ostream objects are provided by the standard library.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
You can help to correct and verify the translation. Click here for instructions.
| Defined in header
<iostream> | |
| escribe en el stdout
(objeto global) corriente estándar C de salida Original: writes to the standard C output stream stdout (objeto global) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| escribe en el flujo de error estándar de C stderr, unbuffered
(objeto global) Original: writes to the standard C error stream stderr, unbuffered (objeto global) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| escribe en el stderr
(objeto global) corriente estándar de C error Original: writes to the standard C error stream stderr (objeto global) The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
[editar] Tipos de miembros
| Miembro de tipo
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
char_type
|
CharT |
traits_type
|
Traits |
int_type
|
Traits::int_type |
pos_type
|
Traits::pos_type |
off_type
|
Traits::off_type |
[editar] Las funciones miembro
| Construye el objeto 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. (miembro público función) | |
| [virtual] |
destructs el objeto 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. (Virtual Member público función) |
| (C++11) |
reemplaza el objeto tampón Original: replaces the buffer object The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (protegidos función miembro) |
Original: Formatted output The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| insertos de formato de datos Original: inserts formatted data 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) | |
Original: Unformatted output The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| inserta un carácter Original: inserts a character 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) | |
| inserciones de bloques de caracteres Original: inserts blocks of characters 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) | |
Original: Positioning The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| 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 función) | |
| 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 función) | |
Original: Miscellaneous The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| sincroniza con el dispositivo de almacenamiento subyacente Original: synchronizes with the underlying storage device 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) | |
| (C++11) |
permutas de los objetos de flujo, excepto para el tampón asociada Original: swaps stream objects, except for the associated buffer The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (protegidos función miembro) |
[editar] Clases de miembros
| implementa lógica básica para la preparación de la corriente para operaciones de salida Original: implements basic logic for preparation of the stream for output operations 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 clase) | |
[editar] Terceros funciones
| inserciones de datos de caracteres Original: inserts character data The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. (función) | |
Inherited from std::basic_ios
Member types
| Miembro de tipo
Original: Member type The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Definition |
char_type
|
CharT |
traits_type
|
Traits |
int_type
|
Traits::int_type |
pos_type
|
Traits::pos_type |
off_type
|
Traits::off_type |
Original: State functions The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| comprueba si se ha producido ningún error es decir, operaciones de E / están disponibles Original: checks if no error has occurred i.e. I/O operations are available 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_ios función)
| |
| comprueba si al final de su archivo ha sido alcanzado Original: checks if end-of-file has been reached 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_ios función)
| |
| Comprueba si un error recuperable se ha producido Original: checks if a recoverable error has occurred 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_ios función)
| |
| Comprueba si un error irrecuperable ha ocurrido Original: checks if a non-recoverable error has occurred 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_ios función)
| |
| comprueba si ha ocurrido un error (sinónimo de fail()) Original: checks if an error has occurred (synonym of fail()) 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_ios función)
| |
| (hasta C + +11) (ya que C + +11) |
comprueba si se ha producido ningún error (sinónimo de !fail()) Original: checks if no error has occurred (synonym of !fail()) 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_ios función)
|
| devuelve las banderas estatales Original: returns state flags 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_ios función)
| |
| establece indicadores de estado Original: sets state flags 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_ios función)
| |
| despeja indicadores de error y eof Original: clears error and eof flags 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_ios función)
| |
Original: Formatting The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| copias la información de formato Original: copies formatting information 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_ios función)
| |
| administra el carácter de relleno Original: manages the fill character 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_ios función)
| |
Original: Miscellaneous The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| manages exception mask (miembro público of std::basic_ios función)
| |
| establece la configuración regional Original: sets the locale 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_ios función)
| |
| gestiona buffer asociado arroyo Original: manages associated stream buffer 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_ios función)
| |
| gestiona corriente atadas Original: manages tied stream 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_ios función)
| |
| estrecha caracteres Original: narrows characters 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_ios función)
| |
| widens characters (miembro público of std::basic_ios función)
| |
Inherited from std::ios_base
Member functions
Original: Formatting The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| gestiona las banderas de formato 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. (miembro público of std::ios_base función)
| |
| establece el marcador formato específico 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. (miembro público of std::ios_base función)
| |
| clears specific format flag (miembro público of std::ios_base función)
| |
| gestiona precisión decimal de operaciones de punto flotante 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. (miembro público of std::ios_base función)
| |
| manages field width (miembro público of std::ios_base función)
| |
Original: Locales The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. | |
| establece la configuración regional 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. (miembro público of std::ios_base función)
| |
| devuelve localización actual 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. (miembro público of std::ios_base función)
| |
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. | |
| [estático] |
devuelve un entero único para todo el programa que es seguro de usar como índice para pword () y 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. (miembro estático público of std::ios_base función)
|
| cambia el tamaño del almacenamiento privado si es necesario y el acceso a la long elemento en el índice especificado 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. (miembro público of std::ios_base función)
| |
| cambia el tamaño del almacenamiento privado si es necesario y el acceso a la void* elemento en el índice especificado 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. (miembro público of std::ios_base función)
| |
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 (miembro público of std::ios_base función)
| |
| [estático] |
Establece si C + + y C IO Libraries son interoperables 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. (miembro estático público of std::ios_base función)
|
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. | |
| corriente excepción 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. (miembro público of std::ios_base clase)
| |
| inicializa los objetos estándar de la corriente 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. (miembro público of std::ios_base clase)
| |
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. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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. |
Explanation | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| corriente Tipo de modo de apertura
Las siguientes constantes se definen también:
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. (typedef) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| banderas de formato tipo
Las siguientes constantes se definen también:
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. (typedef) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| estado del tipo de flujo
Las siguientes constantes se definen también:
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. (typedef) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| seeking direction type
The following constants are also defined:
(typedef) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| especifica el tipo de evento 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) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| callback tipo de función 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) | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
