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. |
valarray<T> operator+() const; |
(1) | |
valarray<T> operator-() const; |
(2) | |
valarray<T> operator~() const; |
(3) | |
valarray<bool> operator!() const; |
(4) | |
Si applica operatori unari ad ogni elemento della matrice numerica.
Original:
Applies unary 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.
Indice |
[modifica] Parametri
(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.
[modifica] Valore di ritorno
Un array numerico contenente elementi con valori ottenuti applicando operatore corrispondente ai valori in *this.
Original:
A numeric array containing elements with values obtained by applying corresponding operator to the values in *this.
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.
[modifica] 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.
[modifica] 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
T
Original:The indicated operator can be applied to typeT
The 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) o bool (4).Original:The result value can be unambiguously converted toT
(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 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 const std::valarray sono forniti.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 std::indirect_array e può essere costruito con il tipo di sostituzione.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. - 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 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. - Tutte le funzioni che accettano due argomenti di tipo const std::valarray& dovrebbe accettare ogni combinazione di const std::valarray& e il tipo di sostituzione.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.
-