Algo::TransformIf

Conditionally applies a transform to a range and stores the results into a container

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Algo/Transform.h"

Syntax

namespace Algo
{
    template<typename InT, typename OutT, typename PredicateT, typename TransformT>
    void Algo::TransformIf
    (
        const InT & Input,
        OutT & Output,
        PredicateT Predicate,
        TransformT Trans
    )
}

Remarks

Conditionally applies a transform to a range and stores the results into a container

Parameters

Parameter

Description

Input

Any iterable type

Output

Container to hold the output

Predicate

Condition which returns true for elements that should be transformed and false for elements that should be skipped

Trans

Transformation operation

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