```
void swap(valarray& v) noexcept;
```

```
size_t size() const;
```

```
T sum() const;
```

```
T min() const;
```

```
T max() const;
```

```
valarray shift(int n) const;
```

[*Example 1*: *end example*]

If the argument has the value -2,
the first two elements of the result will be
value-initialized; the third element of the result will be assigned the value
of the first element of the argument; etc.

â€” ```
valarray cshift(int n) const;
```

```
valarray apply(T func(T)) const;
valarray apply(T func(const T&)) const;
```

```
void resize(size_t sz, T c = T());
```