Navigation
API > API/Runtime > API/Runtime/uLangCore > API/Runtime/uLangCore/TSPtrArrayG
Description
Finds an element which matches a predicate functor.
| Name | FindByPredicate |
| Type | function |
| Header File | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Containers/SharedPointerArray.h |
| Include Path | #include "uLang/Common/Containers/SharedPointerArray.h" |
template<typename Predicate>
ULANG_FORCEINLINETOptional < PointerType > FindByPredicate
(
Predicate Pred
) const
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, taking const pointer to array element. |
See Also
-
FilterByPredicate