[ Web Proxy ]
URL:
Viewing: https://fr.cppreference.com/cpp/numeric/valarray/operator_arith2 [Back]  [Original]

std::valarray::operator+=,-=,*=,/=,%=,&=,|=,<<=,>>= cppreference.com
cppreference.com
Espaces de noms
Variantes

std::valarray::operator+=,-=,*=,/=,%=,&=,|=,<<=,>>=

De cppreference.com

<metanoindex/>

 
 
Bibliothque Numerics
Fonctions mathmatiques courantes
Virgule flottante environnement
Nombres complexes
Tableaux numriques
La gnration de nombres pseudo-alatoires
Moment de la compilation arithmtique rationnelle (C++11)
Gnriques des oprations numriques
Original:
Generic numeric operations
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
iota (C++11)
accumulate
inner_product
adjacent_difference
partial_sum
 
 
<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)
S'applique oprateurs d'affectation composs chaque lment du tableau numrique .
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)
Chaque lment est affecte une valeur obtenue par application de l'oprateur correspondant la valeur prcdente de l'lment et de l'lment correspondant 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.
Le comportement est indfini si 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.
Le comportement est indfini si l'une des valeurs dans v est calcule au cours de la mission et dpend de l'une des valeurs dans *this, qui est l'expression du ct droit de l'affectation une variable se rfre la partie gauche de l'affectation.
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)
Chaque lment est affecte une valeur obtenue par application de l'oprateur correspondant la valeur prcdente de l'lment et la valeur 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.

Paramtres

v -
un autre tableau numrique
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 -
une valeur
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.

Retourne la valeur

*this

Exceptions

(Aucun)
Original:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Notes

Chacun des oprateurs ne peut tre instancie si les conditions suivantes sont remplies:
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.
  • L'oprateur indiqu peut tre appliqu taper T
    Original:
    The indicated operator can be applied to type T
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
  • La valeur de rsultat peut tre converti sans ambigut T (1-3) ou bool (4) .
    Original:
    The result value can be unambiguously converted to T (1-3) or bool (4).
    The text has been machine-translated via Google Translate.
    You can help to correct and verify the translation. Click here for instructions.
La fonction peut tre mise en uvre avec le type de retour diffrent de std::valarray. Dans ce cas, le type de remplacement a les proprits suivantes:
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.
  • Toutes les fonctions de membre de const std::valarray sont fournis .
    Original:
    All const member 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_array et std::indirect_array peut tre construit partir du type de remplacement .
    Original:
    std::valarray, std::slice_array, std::gslice_array, std::mask_array and std::indirect_array can 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.
  • Toutes les fonctions acceptant un argument de type de const std::valarray& devrait galement accepter le type de remplacement .
    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.
  • Toutes les fonctions qui acceptent deux arguments de type de const std::valarray& devrait accepter toutes les combinaisons de const std::valarray& et le type de remplacement .
    Original:
    All functions accepting two arguments of type const std::valarray& should accept every combination of const 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.

Web Proxy Viewer  |  New URL  |  Original Page