class template

std::valarray

<valarray>
template <class T> class valarray;
Valarray class
A valarray object is designed to hold an array of elements, and easily perform mathematical operations on them. It also allows special mechanisms to create subsets of the arrays, using its operator[] .

The class template takes one template parameter T, which is the type of the elements contained in it.

Most mathematical operations can be applied directly to valarray objects, and it also supports most arithmetical and comparison operators.

Members