Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Algo/IndexOf.h |
Include |
#include "Algo/IndexOf.h" |
namespace Algo
{
template<typename RangeType, typename PredicateType>
auto Algo::IndexOfByPredicate
(
RangeType && Range,
PredicateType Pred
)
}
Returns the index of the first element in the range which matches the predicate.
The index of the first element found, or (SizeType)-1 if none was found (where SizeType = decltype(GetNum(Range)))
Parameter |
Description |
---|---|
Range |
The range to search. |
Pred |
The predicate to search for. |