TArrayView::IndexOfByPredicate

Finds an item by predicate.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Containers/ArrayView.h"

Syntax

template<typename Predicate>
SizeType 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.