# std::valarray<T>::~valarray

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

Destructs the numeric array. The destructors of the elements are called and the used storage is deallocated.

## Official Specification Summary (cppreference)

```cpp
~valarray()
```

Destructs the numeric array. The destructors of the elements are called and the used storage is deallocated.

### Complexity

Linear in the size of the numeric array.

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