Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Algo
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Algo/ForEach.h |
| Include | #include "Algo/ForEach.h" |
namespace Algo
{
template<typename InT, typename PredicateT, typename CallableT>
void Algo::ForEachIf
(
InT & Input,
PredicateT Predicate,
CallableT Callable
)
}
Remarks
Conditionally invokes a callable to each element in a range
Parameters
| Name | Description |
|---|---|
| Input | Any iterable type |
| Predicate | Condition which returns true for elements that should be called with and false for elements that should be skipped |
| Callable | Callable object |