Navigation
API > API/Runtime > API/Runtime/Core
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
decltype(GetNum(Range)) Algo::Partition
(
RangeType&& Range, |
Rearranges the elements so that all the elements for which Predicate returns true precede all those for which it returns false. | Algo/Partition.h | |
IndexType Algo::Partition
(
T* Elements, |
Rearranges the elements so that all the elements for which Predicate returns true precede all those for which it returns false. | Algo/Partition.h |
Algo::Partition(RangeType &&, UnaryPredicateType)
Description
Rearranges the elements so that all the elements for which Predicate returns true precede all those for which it returns false. (not stable)
| Name | Algo::Partition |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Algo/Partition.h |
| Include Path | #include "Algo/Partition.h" |
namespace Algo
{
template<typename RangeType, typename UnaryPredicateType>
decltype(GetNum(Range)) Algo::Partition
(
RangeType && Range,
UnaryPredicateType Predicate
)
}
index of the first element in the second group
Parameters
| Name | Remarks |
|---|---|
| Range | the range to sort |
| Predicate | a unary predicate object |
Algo::Partition(T *, const IndexType, UnaryPredicate)
Description
Rearranges the elements so that all the elements for which Predicate returns true precede all those for which it returns false. (not stable)
| Name | Algo::Partition |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Algo/Partition.h |
| Include Path | #include "Algo/Partition.h" |
namespace Algo
{
template<class T, typename IndexType, typename UnaryPredicate>
IndexType Algo::Partition
(
T * Elements,
const IndexType Num,
UnaryPredicate Predicate
)
}
index of the first element in the second group
Parameters
| Name | Remarks |
|---|---|
| First | pointer to the first element |
| Num | the number of items |
| Predicate | unary predicate class |