Possible Duplicate:
sum of elements in astd::vector
I have std::vector<int> and I want to calculate the sum of all the values in that vector.
Is there any built in function or I need to write my custom code?
Possible Duplicate:
sum of elements in astd::vector
I have std::vector<int> and I want to calculate the sum of all the values in that vector.
Is there any built in function or I need to write my custom code?