Algo::CopyIf

Conditionally copies a range into a container

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Algo/Copy.h"

Syntax

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

Remarks

Conditionally copies a range 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 copied and false for elements that should be skipped

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