Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Algo > API/Runtime/Core/Algo/Algo__Includes
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Algo/Includes.h |
| Include | #include "Algo/Includes.h" |
namespace Algo
{
template<typename RangeTypeA, typename RangeTypeB, typename SortPredicateType>
constexpr bool Algo&58;&58;Includes
&40;
RangeTypeA && RangeA,
RangeTypeB && RangeB,
SortPredicateType SortPredicate
&41;
}
Remarks
Checks if one sorted contiguous container is a subsequence of another sorted contiguous container by comparing pairs of elements using a custom predicate. The subsequence does not need to be contiguous. True if RangeB is a subsequence of RangeA according to the provided predicate, false otherwise.
Parameters
| Name | Description |
|---|---|
| RangeA | Container of elements to search through. Must be already sorted by SortPredicate. |
| RangeB | Container of elements to search for. Must be already sorted by SortPredicate. |
| SortPredicate | A binary predicate object used to specify if one element should precede another. |