Espaços nominais
Variantes
Acções

Diferenças entre edições de "cpp/io/io errc/make error code"

Da cppreference.com
< cpp‎ | io‎ | io errc
m (uma edição: Translate from the English version)
m (Use {{lc}}. Update links. Various fixes.)
 
(Uma edição intermédia de um utilizador não apresentada)
Linha 1: Linha 1:
 
{{tr_note}}
 
{{tr_note}}
{{cpp/title|make_error_code{{dcl small|(std::io_errc)}}}}
+
{{cpp/title|make_error_code{{small|(std::io_errc)}}}}
 
{{cpp/io/io_errc/navbar}}
 
{{cpp/io/io_errc/navbar}}
 
{{ddcl | header=ios | notes={{mark since c++11}}|
 
{{ddcl | header=ios | notes={{mark since c++11}}|
Linha 6: Linha 6:
 
}}
 
}}
  
{{tr|Constrói um objeto {{c|std::error_code}} de um valor de {{c|std::io_errc}} tipo como se por {{c|return std::error_code(static_cast<int>(e), std::iostream_category())}}. Esta função é chamada pelo construtor de {{c|std::error_code}} quando dado um argumento {{c|std::io_errc}}.|Constructs an {{c|std::error_code}} object from a value of type {{c|std::io_errc}} as if by {{c|return std::error_code(static_cast<int>(e), std::iostream_category())}}. This function is called by the constructor of {{c|std::error_code}} when given an {{c|std::io_errc}} argument.}}
+
{{tr|Constrói um objeto {{|std::error_code}} de um valor de {{|std::io_errc}} tipo como se por {{c|return std::error_code(static_cast<int>(e), std::iostream_category())}}. Esta função é chamada pelo construtor de {{|std::error_code}} quando dado um argumento {{|std::io_errc}}.|Constructs an {{|std::error_code}} object from a value of type {{|std::io_errc}} as if by {{c|return std::error_code(static_cast<int>(e), std::iostream_category())}}. This function is called by the constructor of {{|std::error_code}} when given an {{|std::io_errc}} argument.}}
  
 
===Parâmetros===
 
===Parâmetros===
{{param list begin}}
+
{{begin}}
{{param list item | e |{{tr| número de código de erro| error code number}}}}
+
{{| e |{{tr| número de código de erro| error code number}}}}
{{param list end}}
+
{{end}}
  
 
===Valor de retorno===
 
===Valor de retorno===
{{tr|Um valor de {{c|std::error_code}} tipo que contém o número do código de erro a partir de {{tt|e}} associado com a categoria de erro {{c|"iostream"}}.|A value of type {{c|std::error_code}} that holds the error code number from {{tt|e}} associated with the error category {{c|"iostream"}}.}}
+
{{tr|Um valor de {{|std::error_code}} tipo que contém o número do código de erro a partir de {{tt|e}} associado com a categoria de erro {{c|"iostream"}}.|A value of type {{|std::error_code}} that holds the error code number from {{tt|e}} associated with the error category {{c|"iostream"}}.}}
  
 
===Exemplo===
 
===Exemplo===
Linha 33: Linha 33:
  
 
===Veja também===
 
===Veja também===
{{dcl list begin}}
+
{{begin}}
{{dcl list template | cpp/error/error_code/dcl list make_error_code}}
+
{{| cpp/error/error_code/make_error_code}}
{{dcl list template | cpp/error/dcl list error_code}}
+
{{| cpp/error/error_code}}
{{dcl list template | cpp/io/dcl list io_errc}}
+
{{| cpp/io/io_errc}}
{{dcl list end}}
+
{{end}}
 +
 
 +
 +
 +
 +
 +
 +
 +
 +

Edição actual desde as 09h24min de 2 de julho de 2013

 
 
De entrada / saída da biblioteca
I / O manipuladores
C estilo de 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.
(obsoleta)
Streams
Original:
Streams
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Abstrações
Original:
Abstractions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
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.
Cordas 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.
Matriz de 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.
(obsoleta)
(obsoleta)
(obsoleta)
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.
Interface de categoria de erro
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.
(C++11)
 
std::io_errc
Classes auxiliares
Original:
Helper classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Funções auxiliares
Original:
Helper functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
make_error_code(std::io_errc)
 
Definido no cabeçalho <ios>
std::error_code make_error_code( std::io_errc e );
(desde C++11)
Constrói um objeto std::error_code de um valor de std::io_errc tipo como se por return std::error_code(static_cast<int>(e), std::iostream_category()). Esta função é chamada pelo construtor de std::error_code quando dado um argumento std::io_errc.
Original:
Constructs an std::error_code object from a value of type std::io_errc as if by return std::error_code(static_cast<int>(e), std::iostream_category()). This function is called by the constructor of std::error_code when given an std::io_errc argument.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Índice

[editar] Parâmetros

e -
número de código de erro
Original:
error code number
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Valor de retorno

Um valor de std::error_code tipo que contém o número do código de erro a partir de e associado com a categoria de erro "iostream".
Original:
A value of type std::error_code that holds the error code number from e associated with the error category "iostream".
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[editar] Exemplo

#include <iostream>
#include <system_error>
int main()
{
    std::error_code ec = std::make_error_code(std::io_errc::stream);
    std::cout << "Error code from io_errc::stream has category "
              << ec.category().name() << '\n';
}

Saída:

Error code from io_errc::stream has category iostream

[editar] Veja também

cria um código de erro a partir de um error_category
Original:
creates an error code from an error_category
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(função) [edit]
possui um código de erro depende da plataforma
Original:
holds a platform-dependent error code
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(classe) [edit]
(C++11)
O erro de IO códigos de fluxo
Original:
the IO stream error codes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

(enum) [edit]