std::valarray::operator+=,-=,*=,/=,%=,&=,|=,<<=,>>=
Aus cppreference.com
|
|
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. |
<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) | |
Gilt Verbindung Zuweisungsoperatoren für jedes Element in der numerischen Array .
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)
Jedes Element wird durch Anwenden des entsprechenden Bedieners auf den vorherigen Wert des Elements und entsprechende Element aus
v erhaltenen zugeordnet .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.
Das Verhalten ist, wenn
size() != v.size() undefiniertOriginal:
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.
Das Verhalten ist nicht definiert, wenn einer der Werte in
v während der Zuweisung berechnet wird und abhängig von einem der Werte in *this, das heißt, der Ausdruck auf der rechten Seite der Zuweisung bezieht sich auf eine Variable in der linken Seite der Zuweisung.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)
Jedes Element wird durch Anwenden des entsprechenden Bedieners auf den vorherigen Wert des Elementes und dem Wert des erhaltenen
val zugeordnet .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.
Parameter
| v | - | ein weiteres numerisches Array
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 | - | ein Wert
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. |
Rückgabewert
*this
Ausnahmen
(None)
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.
Notes
Jeder der Operatoren können nur instanziiert, wenn folgende Voraussetzungen erfüllt sind:
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.
- Der angegebene Operator angewendet
TeinzugebenOriginal: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. - Der resultierende Wert kann eindeutig
T(1-3) oderbool(4) umgewandelt werden .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.
Die Funktion kann mit dem Rückgabetyp anders std::valarray umgesetzt werden. In diesem Fall weist die Ersetzungsart die folgenden Eigenschaften:
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.
- Alle
constElementfunktionen std::valarray bereitgestellt werden .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_arrayundstd::indirect_arraykann aus dem Ersatz-Typ gebaut werden .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. - Alle Funktionen Annehmen eines Argumente des Typs
const std::valarray&sollten auch akzeptieren, den Austausch Typ .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. - Alle Funktionen mit zwei Parametern vom Typ
const std::valarray&sollten akzeptieren, jede Kombination vonconst std::valarray&und den Ersatz Typ .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.