Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Algo > API/Runtime/Core/Algo/Algo__Accumulate
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Algo/Accumulate.h |
| Include | #include "Algo/Accumulate.h" |
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. the result of summing all the elements of Input
Parameters
| Name | Description |
|---|---|
| Input | Any iterable type |
| Init | Initial value for the summation |
| Op | Summing Operation (the default is TPlus<>) |