TArrayView::IndexOfByPredicate

Finds an item by predicate.

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.

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