cpp/numeric/valarray/sum

Computes the sum of the elements.

The function can be used only if is defined for type. If the is empty, the behavior is undefined. The order in which the elements are processed by this function is unspecified.

Parameters
(none)

Return value
The sum of the elements.