◐ Shell
clean mode source ↗

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>

De cppreference.com

<metanoindex/>

<tbody> </tbody>

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)

Compara cada valor dentro da matriz numérica com outro valor.

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)

Retorna uma matriz numérica de bool elementos contendo cada um dos quais é obtido através da aplicação do operador de comparação indicada para os valores correspondentes de 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.

O comportamento é indefinido 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)

Devolve uma matriz numérica de bool elementos contendo cada uma das quais é obtido mediante a aplicação do operador de comparação indicada para lhsv e o valor correspondente da 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)

Devolve uma matriz numérica de bool elementos contendo cada uma das quais é obtido mediante a aplicação do operador indicado comparação com o valor correspondente de 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.

Parâmetros

lhs, rhs -

matrizes numéricas para comparar

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 -

valores para comparar a cada elemento dentro de uma matriz numérica

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.

Valor de retorno

A matriz numérica de bool contendo resultados da comparação dos elementos correspondentes.

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.

Exceções

(Nenhum)

Original:

(none)

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

Notas

Cada um dos operadores só pode ser instanciado se os seguintes requisitos:

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.

  • O operador indicado pode ser aplicado a digitar 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.

  • O valor do resultado possa ser inequivocamente convertido 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.

A função pode ser implementada com o tipo de retorno diferente de std::valarray. Neste caso, o tipo de substituição tem as seguintes propriedades:

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.

  • Todas as funções const membros std::valarray são fornecidos.

    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 pode ser construído a partir do tipo de reposição.

    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.

  • Todas as funções de aceitar um argumentos de const std::valarray& tipo devem também aceitar o tipo de substituição.

    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.

  • Todas as funções que aceitam dois argumentos do tipo const std::valarray& deve aceitar todas as combinações de const std::valarray& e do tipo de substituição.

    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.