TArrayView::FindByPredicate

Finds an element which matches a predicate functor.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Containers/ArrayView.h"

Syntax

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

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