Navigation
API > API/Runtime > API/Runtime/Core
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Algo::IncludesBy
(
const RangeTypeA& RangeA, |
Checks if one sorted contiguous container is a subsequence of another sorted contiguous container by comparing pairs of projected elements. | Algo/Includes.h | |
bool Algo::IncludesBy
(
const RangeTypeA& RangeA, |
Checks if one sorted contiguous container is a subsequence of another sorted contiguous container by comparing pairs of projected elements using a custom predicate. | Algo/Includes.h |
Algo::IncludesBy(const RangeTypeA &, const RangeTypeB &, ProjectionType)
Description
Checks if one sorted contiguous container is a subsequence of another sorted contiguous container by comparing pairs of projected elements. The subsequence does not need to be contiguous. Uses operator< to compare pairs of projected elements.
| Name | Algo::IncludesBy |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Algo/Includes.h |
| Include Path | #include "Algo/Includes.h" |
namespace Algo
{
template<typename RangeTypeA, typename RangeTypeB, typename ProjectionType>
bool Algo::IncludesBy
(
const RangeTypeA & RangeA,
const RangeTypeB & RangeB,
ProjectionType Projection
)
}
True if RangeB is a subsequence of RangeA, based on the comparison of projected elements, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| RangeA | Container of elements to search through. Must be already sorted by operator<. |
| RangeB | Container of elements to search for. Must be already sorted by operator<. |
| Projection | Projection to apply to the elements before comparing them. |
Algo::IncludesBy(const RangeTypeA &, const RangeTypeB &, ProjectionType, SortPredicateType)
Description
Checks if one sorted contiguous container is a subsequence of another sorted contiguous container by comparing pairs of projected elements using a custom predicate. The subsequence does not need to be contiguous.
| Name | Algo::IncludesBy |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Algo/Includes.h |
| Include Path | #include "Algo/Includes.h" |
namespace Algo
{
template<typename RangeTypeA, typename RangeTypeB, typename ProjectionType, typename SortPredicateType>
bool Algo::IncludesBy
(
const RangeTypeA & RangeA,
const RangeTypeB & RangeB,
ProjectionType Projection,
SortPredicateType SortPredicate
)
}
True if RangeB is a subsequence of RangeA according to the comparison of projected elements using the provided predicate, false otherwise.
Parameters
| Name | Remarks |
|---|---|
| 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. |
| Projection | Projection to apply to the elements before comparing them. |
| SortPredicate | A binary predicate object, applied to the projection, used to specify if one element should precede another. |