#include<numeric> vector<int> pack = {1,2,3} ; int sum = accumulate(pack.begin(),pack.end(),0) ; ////**** cout << sum ; // 6