TArray::FindByPredicate

Finds an element which matches a predicate functor.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/Array.h

Include

#include "Containers/Array.h"

Syntax

template<typename Predicate>
ElementType * FindByPredicate
(
    Predicate Pred
)

Remarks

Finds an element which matches a predicate functor.

Parameters

Parameter

Description

Pred

The functor to apply to each element. true, or nullptr if none is found.

See Also

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