Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Algo/Partition.h |
Include |
#include "Algo/Partition.h" |
namespace Algo
{
template<class T, typename IndexType, class UnaryPredicate>
IndexType Algo::Partition
(
T * Elements,
const IndexType Num,
const UnaryPredicate & Predicate
)
}
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
Parameter |
Description |
---|---|
First |
pointer to the first element |
Num |
the number of items |
Predicate |
unary predicate class |