std::slice_array<T>::operator+=,-=,*=,/=,%=,&=,|=,^=,<<=,>>=
void operator+=( const std::valarray<T>& other ) const; | ||
void operator-=( const std::valarray<T>& other ) const; | ||
void operator*=( const std::valarray<T>& other ) const; | ||
void operator/=( const std::valarray<T>& other ) const; | ||
void operator%=( const std::valarray<T>& other ) const; | ||
void operator&=( const std::valarray<T>& other ) const; | ||
void operator|=( const std::valarray<T>& other ) const; | ||
void operator^=( const std::valarray<T>& other ) const; | ||
void operator<<=( const std::valarray<T>& other ) const; | ||
void operator>>=( const std::valarray<T>& other ) const; |
Применяет соответствующую операцию к указанным элементам и элементам other.
Параметры
| other | - | массив аргументов для получения значений |
Значение результата
(пустое)
Исключения
Может вызывать исключения, определённые реализацией.
Пример
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/cpp/numeric/valarray/slice_array/operator_arith