std::slice_array::operator+=,-=,*=,/=,%=,&=,|=,^=,<<=,>>= - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::slice_array::operator+=,-=,*=,/=,%=,&=,|=,^=,<<=,>>=

From cppreference.com
< cpp‎ | numeric‎ | valarray‎ | slice array

[edit template]

void operator+=( const std::valarray<T>& other ); |  |
void operator-=( const std::valarray<T>& other ); |  |
void operator*=( const std::valarray<T>& other ); |  |
void operator/=( const std::valarray<T>& other ); |  |
void operator%=( const std::valarray<T>& other ); |  |
void operator&=( const std::valarray<T>& other ); |  |
void operator|=( const std::valarray<T>& other ); |  |
void operator^=( const std::valarray<T>& other ); |  |
void operator<<=( const std::valarray<T>& other ); |  |
void operator>>=( const std::valarray<T>& other ); |  |

Applies the corresponding operation to the referred elements and the elements of `other`.

### [edit] Parameters

other | - | argument array to retrieve the values from

### [edit] Return value

(none)

### [edit] Exceptions

(none)

### [edit] Example

| This section is incomplete Reason: no example

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/numeric/valarray/slice_array/operator_arith&oldid=61558"
Category:

- Todo no example