Navigation
API > API/Runtime > API/Runtime/Core
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
T Algo::TransformAccumulate
(
const A& Input, |
Sums a range by applying MapOp to each element, and then summing the results. | Algo/Accumulate.h | |
T Algo::TransformAccumulate
(
const A& Input, |
Sums a range by applying MapOp to each element, and then summing the results. | Algo/Accumulate.h |
Algo::TransformAccumulate(const A &, MapT, T)
Description
Sums a range by applying MapOp to each element, and then summing the results.
| Name | Algo::TransformAccumulate |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Algo/Accumulate.h |
| Include Path | #include "Algo/Accumulate.h" |
namespace Algo
{
template<typename T, typename A , typename MapT>
T Algo::TransformAccumulate
(
const A & Input,
MapT MapOp,
T Init
)
}
the result of mapping and then summing all the elements of Input
Parameters
| Name | Remarks |
|---|---|
| Input | Any iterable type |
| MapOp | Mapping Operation |
| Init | Initial value for the summation |
Algo::TransformAccumulate(const A &, MapT, T, OpT)
Description
Sums a range by applying MapOp to each element, and then summing the results.
| Name | Algo::TransformAccumulate |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Algo/Accumulate.h |
| Include Path | #include "Algo/Accumulate.h" |
namespace Algo
{
template<typename T, typename A , typename MapT, typename OpT>
T Algo::TransformAccumulate
(
const A & Input,
MapT MapOp,
T Init,
OpT Op
)
}
the result of mapping and then summing all the elements of Input
Parameters
| Name | Remarks |
|---|---|
| Input | Any iterable type |
| MapOp | Mapping Operation |
| Init | Initial value for the summation |
| Op | Summing Operation (the default is TPlus<>) |