public member function


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


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.