Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Algo > API/Runtime/Core/Algo/Algo__Partition
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Algo/Partition.h |
| Include | #include "Algo/Partition.h" |
namespace Algo
{
template<typename RangeType, typename UnaryPredicateType>
auto Algo&58;&58;Partition
&40;
RangeType && Range,
UnaryPredicateType Predicate
&41;
}
Remarks
Rearranges the elements so that all the elements for which Predicate returns true precede all those for which it returns false. (not stable) index of the first element in the second group
Parameters
| Name | Description |
|---|---|
| Range | the range to sort |
| Predicate | a unary predicate object |