Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TArray
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ElementType * FindByPredicate
(
Predicate Pred |
Finds an element which matches a predicate functor. | Containers/Array.h | |
const ElementType * FindByPredicate
(
Predicate Pred |
Containers/Array.h |
FindByPredicate(Predicate)
Description
Finds an element which matches a predicate functor.
| Name | FindByPredicate |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
template<typename Predicate>
ElementType * FindByPredicate
(
Predicate Pred
)
Pointer to the first element for which the predicate returns true, or nullptr if none is found.
Parameters
| Name | Remarks |
|---|---|
| Pred | The functor to apply to each element. |
See Also
FindByPredicate(Predicate)
| Name | FindByPredicate |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
template<typename Predicate>
const ElementType * FindByPredicate
(
Predicate Pred
) const