Пространства имён
Варианты
Действия

operator==,!=,<,<=,>,>=<div class="t-tr-text">зЬй :: 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

 
 
 
std::valarray
Член функций
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.
Не являющиеся членами функций
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.
Вспомогательные классы
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)
Сравнивает каждого значения в числовой массив с другим значением.
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)
Возвращает числовой массив bool, содержащие элементы, каждый из которых получается путем применения указанного оператора сравнению с соответствующими значениями lhs и 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)
Возвращает числовой массив bool, содержащие элементы, каждый из которых получается путем применения указанного оператора сравнению с lhsv и соответствующее значение 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)
Возвращает числовой массив bool, содержащие элементы, каждый из которых получается путем применения указанного оператора сравнению с соответствующим значением lhs и 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:
(none)
The text has been machine-translated via Google Translate.
You can help to correct and verify the translation. Click here for instructions.

[править] Notes

Каждый из операторов может быть создан только при соблюдении следующих требований:
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.
  • Все const функций-членов std::valarray предоставляются.
    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 может быть построена с заменой типа.
    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.
  • Все функции, принимающие аргументы типа const std::valarray& должны также согласиться с заменой типа.
    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.
  • Все функции принимает два аргумента типа const std::valarray& должны принять все комбинации const std::valarray& и замена типа.
    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.