This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
valarray::apply
valarray<T> apply(T fn(T)) const; valarray<T> apply(T fn(const T&)) const;
The member function returns an object of class valarray<T>, of length size(), each of whose elements I is fn((*this)[I]).
valarray
<T>
size
()
I
fn((*this)[I])