public member function
<valarray>

std::valarray::~valarray

~valarray ();
Valarray destructor
Destroys the valarray after calling each of the contained elements' destructors (if any).

Complexity

Depends on library implementation (operations may be parallelized).

Iterator validity

Invalidates all iterators, references and sub-arrays of the valarray.

Data races

The object and all its contained elements are destroyed.

Exception safety

No-throw guarantee: never throws exceptions.