operator<<(std::normal_distribution), operator>>(std::normal_distribution)
Da cppreference.com
< cpp | numeric | random | normal distribution
![]() |
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. |
template< class CharT, class Traits, class ResultType > std::basic_ostream<CharT,Traits>& operator<<( std::basic_ostream<CharT,Traits>& ost, |
(1) | |
template< class CharT, class Traits, class ResultType > std::basic_istream<CharT,Traits>& operator>>( std::basic_istream<CharT,Traits>& ist, |
(2) | |
Executa fluxo de entrada e saída operações em pseudo-aleatório
1) d
distribuição número.Original:
Performs stream input and output operations on pseudo-random number distribution
d
.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.
Escreve uma representação textual dos parâmetros da distribuição e estado interno para
2) ost
como representação textual. As bandeiras de formatação e caracteres de preenchimento de ost
estão inalterados.Original:
Writes a textual representation of the distribution parameters and internal state to
ost
as textual representation. The formatting flags and fill character of ost
are unchanged.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.
Restaura os parâmetros de distribuição e estado interno com os dados lidos a partir
ist
. As bandeiras de formatação de ist
permanecem inalteradas. Os dados devem ter sido escrito usando uma corrente com a mesma localidade, CharT
e parâmetros do modelo Traits
, caso contrário, o comportamento é indefinido. Se a entrada do mal é encontrado, ist.setstate(std::ios::failbit) é chamado, que pode lançar std::ios_base::failure. d
é inalterado, nesse caso,.Original:
Restores the distribution parameters and internal state with data read from
ist
. The formatting flags of ist
are unchanged. The data must have been written using a stream with the same locale, CharT
and Traits
template parameters, otherwise the behavior is undefined. If bad input is encountered, ist.setstate(std::ios::failbit) is called, which may throw std::ios_base::failure. d
is unchanged in that case.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.
[editar] Parâmetros
ost | - | fluxo de saída para inserir os dados para
Original: output stream to insert the data to The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
ist | - | fluxo de entrada para extrair os dados a partir de
Original: input stream to extract the data from The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
d | - | pseudo-aleatório distribuição de números
Original: pseudo-random number distribution 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
1) ost
2) ist
[editar] Exceções
1)(Nenhum)
2) Original:
(none)
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.
pode lançar std::ios_base::failure na entrada ruim.
Original:
may throw std::ios_base::failure on bad input.
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.