Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Algo > API/Runtime/Core/Algo/Algo__IncludesBy
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 ProjectionType>
constexpr bool Algo&58;&58;IncludesBy
&40;
RangeTypeA && RangeA,
RangeTypeB && RangeB,
ProjectionType Projection
&41;
}
Remarks
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. True if RangeB is a subsequence of RangeA, based on the comparison of projected elements, false otherwise.
Parameters
| Name | Description |
|---|---|
| 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. |