26 template <
typename RangeValueType,
typename SizeType,
typename PredicateValueType,
typename ProjectionType,
typename SortPredicateType>
37 const SizeType LeftoverSize =
Size % 2;
40 const SizeType CheckIndex = Start +
Size;
41 const SizeType
StartIfLess = CheckIndex + LeftoverSize;
59 template <
typename RangeValueType,
typename SizeType,
typename PredicateValueType,
typename ProjectionType,
typename SortPredicateType>
70 const SizeType LeftoverSize =
Size % 2;
73 const SizeType CheckIndex = Start +
Size;
74 const SizeType
StartIfLess = CheckIndex + LeftoverSize;
95 template <
typename RangeType,
typename ValueType,
typename SortPredicateType>
100 template <
typename RangeType,
typename ValueType>
116 template <
typename RangeType,
typename ValueType,
typename ProjectionType,
typename SortPredicateType>
121 template <
typename RangeType,
typename ValueType,
typename ProjectionType>
136 template <
typename RangeType,
typename ValueType,
typename SortPredicateType>
141 template <
typename RangeType,
typename ValueType>
157 template <
typename RangeType,
typename ValueType,
typename ProjectionType,
typename SortPredicateType>
162 template <
typename RangeType,
typename ValueType,
typename ProjectionType>
176 template <
typename RangeType,
typename ValueType,
typename SortPredicateType>
180 if (CheckIndex <
GetNum(Range))
191 template <
typename RangeType,
typename ValueType>
206 template <
typename RangeType,
typename ValueType,
typename ProjectionType,
typename SortPredicateType>
210 if (CheckIndex <
GetNum(Range))
221 template <
typename RangeType,
typename ValueType,
typename ProjectionType>
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
bool SortPredicate(const FCompileOnTheFlyData &A, const FCompileOnTheFlyData &B)
Definition MovieSceneCompiledDataManager.cpp:364
AUTORTFM_INFER constexpr auto Projection(Invocable0Type &&Invocable0, InvocableTypes &&... Invocables)
Definition Projection.h:108
#define ULANG_FORCEINLINE
Definition Common.h:188
auto GetNum(const TStringConversion< Converter, DefaultConversionSize > &Conversion) -> decltype(Conversion.Length())
Definition StringConv.h:808
auto GetData(const TStringConversion< Converter, DefaultConversionSize > &Conversion) -> decltype(Conversion.Get())
Definition StringConv.h:802
uint32 Size
Definition VulkanMemory.cpp:4034
Definition BinarySearch.h:10
Definition ParallelSort.h:13
ULANG_FORCEINLINE SizeType UpperBoundInternal(RangeValueType *First, const SizeType Num, const PredicateValueType &Value, ProjectionType Projection, SortPredicateType SortPredicate)
Definition BinarySearch.h:60
ULANG_FORCEINLINE SizeType LowerBoundInternal(RangeValueType *First, const SizeType Num, const PredicateValueType &Value, ProjectionType Projection, SortPredicateType SortPredicate)
Definition BinarySearch.h:27
ULANG_FORCEINLINE auto UpperBoundBy(const RangeType &Range, const ValueType &Value, ProjectionType Projection, SortPredicateType SortPredicate) -> decltype(GetNum(Range))
Definition BinarySearch.h:158
ULANG_FORCEINLINE auto BinarySearch(const RangeType &Range, const ValueType &Value, SortPredicateType SortPredicate) -> decltype(GetNum(Range))
Definition BinarySearch.h:177
ULANG_FORCEINLINE auto BinarySearchBy(const RangeType &Range, const ValueType &Value, ProjectionType Projection, SortPredicateType SortPredicate) -> decltype(GetNum(Range))
Definition BinarySearch.h:207
ULANG_FORCEINLINE auto LowerBound(const RangeType &Range, const ValueType &Value, SortPredicateType SortPredicate) -> decltype(GetNum(Range))
Definition BinarySearch.h:96
ULANG_FORCEINLINE auto LowerBoundBy(const RangeType &Range, const ValueType &Value, ProjectionType Projection, SortPredicateType SortPredicate) -> decltype(GetNum(Range))
Definition BinarySearch.h:117
ULANG_FORCEINLINE auto UpperBound(const RangeType &Range, const ValueType &Value, SortPredicateType SortPredicate) -> decltype(GetNum(Range))
Definition BinarySearch.h:137
Definition VVMEngineEnvironment.h:23
@ IndexNone
Definition Common.h:381
ULANG_FORCEINLINE auto Invoke(FuncType &&Func, ArgTypes &&... Args) -> decltype(uLang::ForwardArg< FuncType >(Func)(uLang::ForwardArg< ArgTypes >(Args)...))
Definition Invoke.h:47
Definition IdentityFunctor.h:15