Algo::Accumulate

Sums a range.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Algo/Accumulate.h

Include

#include "Algo/Accumulate.h"

Syntax

namespace Algo
{
    template<typename T, typename A>
    T Algo::Accumulate
    (
        const A & Input,
        T Init
    )
}

Remarks

Sums a range.

Returns

the result of summing all the elements of Input

Parameters

Parameter

Description

Input

Any iterable type

Init

Initial value for the summation

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss