sum

Tells the sum of the array elements.

  T sum() const;
  
Remarks

Returns the sum of the array elements.