The Wayback Machine - https://web.archive.org/web/20170924041957/http://it.cppreference.com/w/cpp/numeric/valarray/operator_cmp

operator==,!=,<,<=,>,>=<div class="t-tr-text">std :: valarray<div class="t-tr-dropdown"><div><div><div class="t-tr-dropdown-arrow-border"></div><div class="t-tr-dropdown-arrow"></div><div class="t-tr-dropdown-h">Original:</div><div class="t-tr-dropdown-orig">std::valarray</div><div class="t-tr-dropdown-notes">The text has been machine-translated via [http://translate.google.com Google Translate].<br/> You can help to correct and verify the translation. Click [http://en.cppreference.com/w/Cppreference:MachineTranslations here] for instructions.</div></div></div></div></div>

Da cppreference.com.
< cpp‎ | numeric‎ | valarray

 
 
Numeri libreria
Comuni funzioni matematiche
Virgola mobile ambiente
I numeri complessi
Array numerici
Pseudo-casuale generazione
In fase di compilazione aritmetica razionale(C++11)
Generici operazioni numeriche
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
 
std::valarray
Membri funzioni
Original:
Member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Non membri funzioni
Original:
Non-member functions
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
Helper classi
Original:
Helper classes
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
 
template<class T >

valarray<bool> operator==(const valarray<T>& lhs, const valarray<T>& rhs );
template<class T >
valarray<bool> operator!=(const valarray<T>& lhs, const valarray<T>& rhs );
template<class T >
valarray<bool> operator<(const valarray<T>& lhs, const valarray<T>& rhs );
template<class T >
valarray<bool> operator<=(const valarray<T>& lhs, const valarray<T>& rhs );
template<class T >
valarray<bool> operator>(const valarray<T>& lhs, const valarray<T>& rhs );
template<class T >

valarray<bool> operator>=(const valarray<T>& lhs, const valarray<T>& rhs );
(1)
template<class T >

valarray<bool> operator==(const T& lhsv, const valarray<T>& rhs );
template<class T >
valarray<bool> operator!=(const T& lhsv, const valarray<T>& rhs );
template<class T >
valarray<bool> operator<(const T& lhsv, const valarray<T>& rhs );
template<class T >
valarray<bool> operator<=(const T& lhsv, const valarray<T>& rhs );
template<class T >
valarray<bool> operator>(const T& lhsv, const valarray<T>& rhs );
template<class T >

valarray<bool> operator>=(const T& lhsv, const valarray<T>& rhs );
(2)
template<class T >

valarray<bool> operator==(const valarray<T>& lhs, const T& rhsv );
template<class T >
valarray<bool> operator!=(const valarray<T>& lhs, const T& rhsv );
template<class T >
valarray<bool> operator<(const valarray<T>& lhs, const T& rhsv );
template<class T >
valarray<bool> operator<=(const valarray<T>& lhs, const T& rhsv );
template<class T >
valarray<bool> operator>(const valarray<T>& lhs, const T& rhsv );
template<class T >

valarray<bool> operator>=(const valarray<T>& lhs, const T& rhsv );
(3)
Confronta ogni valore all'interno della matrice con un altro valore numerico.
Original:
Compares each value within the numeric array with another value.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
1)
Restituisce un array numerico di elementi bool contenenti ciascuno dei quali è ottenuto applicando l'operatore indicato rispetto ai valori corrispondenti di lhs e rhs
Original:
Returns a numeric array of bool containing elements each of which is obtained by applying the indicated comparison operator to the corresponding values of lhs and rhs
The text has been machine-translated via Google Translate.
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.
2)
Restituisce un array numerico di elementi bool contenenti ciascuno dei quali è ottenuto applicando l'operatore indicato confronto lhsv e il corrispondente valore di rhs.
Original:
Returns a numeric array of bool containing elements each of which is obtained by applying the indicated comparison operator to lhsv and the corresponding value of rhs .
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
3)
Restituisce un array numerico di elementi bool contenenti ciascuno dei quali è ottenuto applicando l'operatore indicato rispetto al corrispondente valore del lhs e rhsv.
Original:
Returns a numeric array of bool containing elements each of which is obtained by applying the indicated comparison operator to the corresponding value of lhs and rhsv.
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

Indice

[modifica]Parametri

lhs, rhs -
matrici numeriche da confrontare
Original:
numeric arrays to compare
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.
lhsv, rhsv -
I valori da confrontare ad ogni elemento all'interno di un array numerico
Original:
values to compare to each element within a numeric array
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[modifica]Valore di ritorno

Una matrice numerica di bool contenente i risultati del confronto di elementi corrispondenti.
Original:
A numeric array of bool containing comparison results of corresponding elements.
The text has been machine-translated via Google Translate.
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.

[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.
  • L'operatore indicato può essere applicato al tipo 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.
  • Il valore risultante può essere convertito in modo inequivocabile bool.
    Original:
    The result value can be unambiguously converted to bool.
    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.
  • Tutte le funzioni di membro conststd::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_arraystd::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 conststd::valarray& tipo devono anche accettare il tipo di sostituzione.
    Original:
    All functions accepting a arguments of type conststd::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 conststd::valarray& dovrebbe accettare ogni combinazione di conststd::valarray& e il tipo di sostituzione.
    Original:
    All functions accepting two arguments of type conststd::valarray& should accept every combination of conststd::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.
close