std::valarray::operator+=,-=,*=,/=,%=,&=,|=,<<=,>>= - cppreference.com
De cppreference.com
<metanoindex/>
<tbody> </tbody>
|
|
(1) | |
|
|
(2) | |
Aplica-se operadores de atribuição compostos para cada elemento da matriz numérica.
Original:
Applies compound assignment operators to each element in the numeric array.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
Cada elemento é atribuído valor obtido através da aplicação do operador correspondente ao valor anterior do elemento e do elemento correspondente de v.
Original:
Each element is assigned value obtained by applying the corresponding operator to the previous value of the element and corresponding element from v.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
O comportamento é indefinido se size() != v.size()
Original:
The behavior is undefined if size() != v.size()
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
O comportamento é indefinido se qualquer um dos valores em v é calculado durante a atribuição e depende de qualquer um dos valores em *this, isto é, a expressão do lado direito da atribuição refere-se a uma variável no lado esquerdo da atribuição.
Original:
The behavior is undefined if any of the values in v is computed during the assignment and depends on any of the values in *this, that is, the expression on the right side of the assignment refers to a variable in the left side of the assignment.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
2)
Cada elemento é atribuído valor obtido através da aplicação do operador correspondente ao valor anterior do elemento e o valor de val.
Original:
Each element is assigned value obtained by applying the corresponding operator to the previous value of the element and the value of val.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Parâmetros
| v | - | outra matriz numérica Original: another numeric array The text has been machine-translated via Google Translate. |
| val | - | um valor Original: a value The text has been machine-translated via Google Translate. |
Valor de retorno
*this
Exceções
(Nenhum)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Notas
Cada um dos operadores só pode ser instanciado se os seguintes requisitos:
Original:
Each of the operators can only be instantiated if the following requirements are met:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
O operador indicado pode ser aplicado a digitar
TOriginal:
The indicated operator can be applied to type
TThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.O valor do resultado possa ser inequivocamente convertido
T(1-3) oubool(4).Original:
The result value can be unambiguously converted to
T(1-3) orbool(4).The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
A função pode ser implementada com o tipo de retorno diferente de std::valarray. Neste caso, o tipo de substituição tem as seguintes propriedades:
Original:
The function can be implemented with the return type different from std::valarray. In this case, the replacement type has the following properties:
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Todas as funções
constmembros std::valarray são fornecidos.Original:
All
constmember functions of std::valarray are provided.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.std::valarray,
std::slice_array,std::gslice_array,std::mask_arraystd::indirect_arraye pode ser construído a partir do tipo de reposição.Original:
std::valarray,
std::slice_array,std::gslice_array,std::mask_arrayandstd::indirect_arraycan be constructed from the replacement type.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.Todas as funções de aceitar um argumentos de
const std::valarray&tipo devem também aceitar o tipo de substituição.Original:
All functions accepting a arguments of type
const std::valarray&should also accept the replacement type.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.Todas as funções que aceitam dois argumentos do tipo
const std::valarray&deve aceitar todas as combinações deconst std::valarray&e do tipo de substituição.Original:
All functions accepting two arguments of type
const std::valarray&should accept every combination ofconst std::valarray&and the replacement type.The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.