Navigation
API > API/Runtime > API/Runtime/Core
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
auto Algo::BinarySearch
(
const RangeType& Range, |
Algo/BinarySearch.h | ||
decltype(GetNum(Range)) Algo::BinarySearch
(
const RangeType& Range, |
Returns index to the first found element matching a value in a range, the range must be sorted by < | Algo/BinarySearch.h |
Algo::BinarySearch(const RangeType &, const ValueType &)
| Name | Algo::BinarySearch |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Algo/BinarySearch.h |
| Include Path | #include "Algo/BinarySearch.h" |
namespace Algo
{
template<typename RangeType, typename ValueType>
auto Algo::BinarySearch
(
const RangeType & Range,
const ValueType & Value
)
}
Algo::BinarySearch(const RangeType &, const ValueType &, SortPredicateType)
Description
Returns index to the first found element matching a value in a range, the range must be sorted by <
| Name | Algo::BinarySearch |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Algo/BinarySearch.h |
| Include Path | #include "Algo/BinarySearch.h" |
namespace Algo
{
template<typename RangeType, typename ValueType, typename SortPredicateType>
decltype(GetNum(Range)) Algo::BinarySearch
(
const RangeType & Range,
const ValueType & Value,
SortPredicateType SortPredicate
)
}
Index of found element, or INDEX_NONE
Parameters
| Name | Remarks |
|---|---|
| Range | The range to search, must be already sorted by SortPredicate |
| Value | The value to search for |
| SortPredicate | Predicate for sort comparison, defaults to < |