Navigation
API > API/Runtime > API/Runtime/Core
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool Algo::Includes
(
const RangeTypeA& RangeA, |
Checks if one sorted contiguous container is a subsequence of another sorted contiguous container by comparing pairs of elements. | Algo/Includes.h | |
bool Algo::Includes
(
const RangeTypeA& RangeA, |
Checks if one sorted contiguous container is a subsequence of another sorted contiguous container by comparing pairs of elements using a custom predicate. | Algo/Includes.h |
Algo::Includes(const RangeTypeA &, const RangeTypeB &)
Description
Checks if one sorted contiguous container is a subsequence of another sorted contiguous container by comparing pairs of elements. The subsequence does not need to be contiguous. Uses operator< to compare pairs of elements.
| Name | Algo::Includes |
| 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>
bool Algo::Includes
(
const RangeTypeA & RangeA,
const RangeTypeB & RangeB
)
}
True if RangeB is a subsequence of RangeA, 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<. |
Algo::Includes(const RangeTypeA &, const RangeTypeB &, SortPredicateType)
Description
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.
| Name | Algo::Includes |
| 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 SortPredicateType>
bool Algo::Includes
(
const RangeTypeA & RangeA,
const RangeTypeB & RangeB,
SortPredicateType SortPredicate
)
}
True if RangeB is a subsequence of RangeA according to 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. |
| SortPredicate | A binary predicate object used to specify if one element should precede another. |