名前空間
変種
操作

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>

提供: cppreference.com
< cpp‎ | numeric‎ | valarray

 
 
 
 
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)
別の値が数値配列内の各値を比較.
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)
boollhsの対応する値に指定された比較演算子を適用することによって得られるそれぞれの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.
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)
boollhsvの対応する値に指定された比較演算子を適用することによって得られるそれぞれの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)
boollhsの対応する値に指定された比較演算子を適用することによって得られるそれぞれの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.

目次

[編集] パラメータ

lhs, rhs -
比較するための数値配列
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 -
値が数値の配列内の各要素と比較する
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.

[編集] 値を返します

対応する要素の比較結果を含むboolの数値配列.
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.

[編集] 例外

(なし)

[編集] ノート

次の要件が満たされている場合の演算子は、インスタンシエーションのみできます
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.
  • 指定された演算子は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.
  • 結果値が一義的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.
関数はstd::valarrayから別の戻り値型で実装することができます。この場合、交換型は、次のプロパティがあります
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.