Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Algo/IsSorted.h |
Include |
#include "Algo/IsSorted.h" |
namespace Algo
{
template<typename RangeType, typename ProjectionType>
bool Algo::IsSortedBy
(
const RangeType & Range,
ProjectionType Projection
)
}
Tests if a range is sorted by a projection of the element type, using the projection's operator<.
true if the range is sorted, false otherwise.
Parameter |
Description |
---|---|
Range |
The container to test for being sorted. |