Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Algo/MinElement.h |
Include |
#include "Algo/MinElement.h" |
namespace Algo
{
template<typename RangeType, typename ComparatorType>
auto Algo::MinElement
(
RangeType & Range,
ComparatorType Comp
)
}
Returns a pointer to the minimum element in a range with a user-defined binary comparator. If the range contains multiple minimum elements, a pointer to the first one will be returned.
A pointer to the minimum element, or nullptr if the range was empty.
Parameter |
Description |
---|---|
Range |
The range to find the minimum element in. |
Comp |
The comparator to use when comparing two elements. |