TArray::IndexOfByPredicate

Syntax

template<typename Predicate>
int32 IndexOfByPredicate
(
    Predicate Pred
) const

Remarks

Finds an item by predicate.

Returns

Index to the first matching element, or INDEX_NONE if none is found.

Parameters

Parameter

Description

Pred

The predicate to match.

References

Module

Core

Header

Runtime/Core/Public/Containers/Array.h