partial_sum (STL/CLR)

Computes a series of sums in an input range from the first element through the ith element and stores the result of each such sum in ith element of a destination range or computes the result of a generalized procedure where the sum operation is replaced by another specified binary operation.

template<class _InIt, class _OutIt> inline
    _OutIt partial_sum(_InIt _First, _InIt _Last, _OutIt _Dest);
template<class _InIt, class _OutIt, class _Fn2> inline
    _OutIt partial_sum(_InIt _First, _InIt _Last,
        _OutIt _Dest, _Fn2 _Func);

Remarks

This function behaves the same as the STL numeric function partial_sum. For more information, see partial_sum.

Requirements

Header: <cliext/numeric>

Namespace: cliext

See Also

Reference

numeric (STL/CLR)