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>
const ElementType * FindByPredicate
(
    Predicate Pred
) const

Remarks

Finds an element which matches a predicate functor.

Returns

Pointer to the first element for which the predicate returns true, or nullptr if none is found.

Parameters

Parameter

Description

Pred

The functor to apply to each element.

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