Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Algo/StableSort.h |
Include |
#include "Algo/StableSort.h" |
Sort elements using user defined projection and predicate classes. The sort is stable, meaning that the ordering of equal items is preserved. This is the internal sorting function used by the Algo::Sort overloads.
Parameter |
Description |
---|---|
First |
Pointer to the first element to sort. |
Num |
The number of items to sort. |
Projection |
A projection to apply to each element to get the value to sort by. |
Predicate |
A predicate class which compares two projected elements and returns whether one occurs before the other. |