Module |
|
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
)
}
Sums a range by successively applying Op.
the result of summing all the elements of Input
Parameter |
Description |
---|---|
Input |
Any iterable type |
Init |
Initial value for the summation |
Op |
Summing Operation (the default is TPlus<>) |