Algo::Accumulate

Sums a range by successively applying Op.

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, typename OpT>
    T Algo::Accumulate
    (
        const A & Input,
        T Init,
        OpT Op
    )
}

Remarks

Sums a range by successively applying Op.

Returns

the result of summing all the elements of Input

Parameters

Parameter

Description

Input

Any iterable type

Init

Initial value for the summation

Op

Summing Operation (the default is TPlus<>)

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