TArrayView::FindByPredicate

Finds an element which matches a predicate functor.

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>
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.