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<class T, typename IndexType, typename UnaryPredicate>
IndexType Algo::Partition
(
T * Elements,
const IndexType Num,
UnaryPredicate Predicate
)
}
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 |
|---|---|
| First | pointer to the first element |
| Num | the number of items |
| Predicate | unary predicate class |