Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Algo/Sort.h |
Include |
#include "Algo/Sort.h" |
namespace Algo
{
template<typename RangeType, typename ProjectionType, typename PredicateType>
void Algo::SortBy
(
RangeType && Range,
ProjectionType Proj,
PredicateType Pred
)
}
Sort a range of elements by a projection using a user-defined predicate class. The sort is unstable.
Parameter |
Description |
---|---|
Range |
The range to sort. |
Proj |
The projection to sort by when applied to the element. |
Predicate |
A binary predicate object, applied to the projection, used to specify if one element should precede another. |