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

> C++ Atlas: `cppatlas.com/w/cpp/numeric/valarray/indirect_array/operator_arith` | Source: https://en.cppreference.com/w/cpp/numeric/valarray/indirect_array/operator_arith | Domain: Numerics

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

## Official Specification Summary (cppreference)

```cpp
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;
```

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

### Parameters

- `other` - argument array to retrieve the values from

### Return value

(none)

### Exceptions

May throw implementation-defined exceptions.

### Example

> Note: This section is incomplete Reason: no example

---
Attribution: content from https://en.cppreference.com/w/cpp/numeric/valarray/indirect_array/operator_arith (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.