std::valarray::operator+=,-=,*=,/=,%=,&=,|=,<<=,>>=
Da cppreference.com.
|
|
Questa pagina è stata tradotta in modo automatico dalla versione in ineglese della wiki usando Google Translate.
La traduzione potrebbe contenere errori e termini strani. Muovi il puntatore sopra al testo per vedere la versione originale. Puoi aiutarci a correggere gli gli errori. Per ulteriori istruzioni clicca qui. |
<metanoindex/>
<tbody> </tbody> valarray<T> operator+=( const valarray<T>& v ); valarray<T> operator-=( const valarray<T>& v ); valarray<T> operator*=( const valarray<T>& v ); valarray<T> operator/=( const valarray<T>& v ); valarray<T> operator%=( const valarray<T>& v ); valarray<T> operator&=( const valarray<T>& v ); valarray<T> operator|=( const valarray<T>& v ); valarray<T> operator^=( const valarray<T>& v ); valarray<T> operator<<=( const valarray<T>& v ); valarray<T> operator>>=( const valarray<T>& v ); |
(1) | |
valarray<T> operator+=( const T& val ); valarray<T> operator-=( const T& val ); valarray<T> operator*=( const T& val ); valarray<T> operator/=( const T& val ); valarray<T> operator%=( const T& val ); valarray<T> operator&=( const T& val ); valarray<T> operator|=( const T& val ); valarray<T> operator^=( const T& val ); valarray<T> operator<<=( const T& val ); valarray<T> operator>>=( const T& val ); |
(2) | |
Si applica operatori di assegnazione composti ad ogni elemento della matrice numerica.
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.
You can help to correct and verify the translation. Click here for instructions.
1)
Ogni elemento è assegnato valore ottenuto applicando l'operatore corrispondente al valore precedente dell'elemento e dal corrispondente elemento
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.
You can help to correct and verify the translation. Click here for instructions.
Il comportamento è indefinito 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.
You can help to correct and verify the translation. Click here for instructions.
Il comportamento è indefinito se uno dei valori in
v viene calcolato durante l'assegnazione e dipende qualsiasi dei valori in *this, cioè, l'espressione sul lato destro della cessione si riferisce ad una variabile nel lato sinistro della assegnazione.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.
You can help to correct and verify the translation. Click here for instructions.
2)
Ogni elemento è assegnato valore ottenuto applicando l'operatore corrispondente al valore precedente dell'elemento e il valore di
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.
You can help to correct and verify the translation. Click here for instructions.
Parametri
| v | - | un altro array numerico
Original: another numeric array The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
| val | - | un valore
Original: a value The text has been machine-translated via Google Translate. You can help to correct and verify the translation. Click here for instructions. |
Valore di ritorno
*this
Eccezioni
(Nessuno)
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.
Note
Ciascuno degli operatori può essere un'istanza se soddisfa i seguenti requisiti:
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.
You can help to correct and verify the translation. Click here for instructions.
- L'operatore indicato può essere applicato al tipo
TOriginal:The indicated operator can be applied to typeTThe text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions. - Il valore risultante può essere convertito in modo inequivocabile
T(1-3) obool(4).Original:The result value can be unambiguously converted toT(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.
La funzione può essere implementata con il tipo restituito diverso da std::valarray. In questo caso, il tipo di sostituzione ha le seguenti proprietà:
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.
You can help to correct and verify the translation. Click here for instructions.
- Tutte le funzioni di membro
conststd::valarray sono forniti.Original:Allconstmember 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 può essere costruito con il tipo di sostituzione.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. - Tutte le funzioni che accettano un argomento di
const std::valarray&tipo devono anche accettare il tipo di sostituzione.Original:All functions accepting a arguments of typeconst 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. - Tutte le funzioni che accettano due argomenti di tipo
const std::valarray&dovrebbe accettare ogni combinazione diconst std::valarray&e il tipo di sostituzione.Original:All functions accepting two arguments of typeconst 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.