1 , accumulate()template<class _II, class _Ty> inline_Ty accumulate(_II _F, _II _L, _Ty _V){for (; _F != _L; ++_F)_V = _V + *_F;return (_V); }作用就是计算累积.2,adjacent_difference()_OI _Adjacent_difference(_II _F, _II _L, _OI _X, _Ty *){_Ty _V = *_F;for (*…