The use of this member function requires that operator+= can be applied to T.
Parameters
noneReturn value
The sum of all the elements in the valarray.T is the template type of valarray (the elements' type).
Example
| 1 2 3 4 5 6 7 8 9 10 11 12 13 |
|
Output:
The sum is 100 |
See also
| valarray::min | Return lowest value (public member function) |
| valarray::max | Return highest value (public member function) |
| valarray operators | Valarray operators (functions) |
