Standard C++ Library Reference ISO/IEC (VERSION3)
Next
<valarray>
gslice · gslice_array · indirect_array · mask_array · slice · slice_array
· valarray · valarray<bool>
abs · acos · asin · atan · atan2 · cos · cosh · exp · log · log10 ·
operator!= · operator% · operator& · operator&& · operator> · operator>>
· operator>= · operator< · operator<< · operator<= · operator* ·
operator+ · operator- · operator/ · operator== · operator^ · operator| ·
operator|| · pow · sin · sinh · sqrt · tan · tanh
Include the standard header <valarray> to define the template class valarray and numerous
supporting template classes and functions. These template classes and functions are permitted unusual
latitude, in the interest of improved performance. Specifically, any function described here as returning
valarray<Ty> may actually return an object of some other type Other. In that case, any other function
described here that accepts one or more arguments of type valarray<Ty> must have overloads that accept
arbitrary combinations of those arguments, each replaced with an argument of type Other. (Put simply, the
only way you can detect such a substitution is to go looking for it.)
namespace std {
class slice;
class gslice;
// TEMPLATE CLASSES
template<class Ty>
class valarray;
template<class Ty>
class slice_array;
template<class Ty>
class gslice_array;
template<class Ty>
class mask_array;
template<class Ty>
class indirect_array;
// TEMPLATE FUNCTIONS
template<class Ty>
valarray<Ty> operator*(const valarray<Ty>& left,
const valarray<Ty>& right);
template<class Ty>
valarray<Ty> operator*(const valarray<Ty> left,
const Ty& right);
template<class Ty>
valarray<Ty> operator*(const Ty& left,