Partager via


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);

Notes

This function behaves the same as the STL numeric function partial_sum. Pour plus d'informations, consultez partial_sum.

Configuration requise

Header: <cliext/numeric>

Namespace: cliext

Voir aussi

Référence

STL/CLR numérique ()