valvector_sum

View page source

Sum elements of a valvector

Returns the sum of the elements in this valvector.

Prototype

   scalar_type sum(void) const

Example

The file valvector_sum.cpp is an example and test of valvector sum.