Algo::ForEachIf

Conditionally invokes a callable to each element in a range

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Algo/ForEach.h

Include

#include "Algo/ForEach.h"

Syntax

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

Parameter

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

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