Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Algo/IsSorted.h |
Include |
#include "Algo/IsSorted.h" |
namespace Algo
{
template<typename RangeType, typename ProjectionType, typename PredType>
bool Algo::IsSortedBy
(
const RangeType & Range,
ProjectionType Projection,
PredType Pred
)
}
Tests if a range is sorted by a projection of the element type, using a user-defined predicate on the projection.
true if the range is sorted, false otherwise.
Parameter |
Description |
---|---|
Range |
The container to test for being sorted. |
Pred |
A binary sorting predicate which describes the ordering of the elements in the array. |