Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Algo > API/Runtime/Core/Algo/Algo__MinElementBy
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Algo/MinElement.h |
| Include | #include "Algo/MinElement.h" |
namespace Algo
{
template<typename RangeType, typename ProjectionType>
auto Algo&58;&58;MinElementBy
&40;
RangeType & Range,
ProjectionType Proj
&41;
}
Remarks
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.
Parameters
| Name | Description |
|---|---|
| Range | The range to find the minimum element in. |
| Proj | The projection to apply to the element to use for comparison. |