Navigation
API > API/Runtime > API/Runtime/Core
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
decltype(AlgoImpl::MinElementBy(Range, MoveTemp(Proj), TLess<>())) Algo::MinElementBy
(
RangeType&& Range, |
Returns a pointer to the minimum element in a range with a user-defined binary comparator. | Algo/MinElement.h | |
decltype(AlgoImpl::MinElementBy(Range, MoveTemp(Proj), MoveTemp(Comp))) Algo::MinElementBy
(
RangeType&& Range, |
Returns a pointer to the minimum element in a range with a user-defined binary comparator. | Algo/MinElement.h |
Algo::MinElementBy(RangeType &&, ProjectionType)
Description
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.
| Name | Algo::MinElementBy |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Algo/MinElement.h |
| Include Path | #include "Algo/MinElement.h" |
namespace Algo
{
template<typename RangeType, typename ProjectionType>
decltype, TLess <>)) Algo::MinElementBy
(
RangeType && Range,
ProjectionType Proj
)
}
A pointer to the minimum element, or nullptr if the range was empty.
Parameters
| Name | Remarks |
|---|---|
| Range | The range to find the minimum element in. |
| Proj | The projection to apply to the element to use for comparison. |
Algo::MinElementBy(RangeType &&, ProjectionType, ComparatorType)
Description
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.
| Name | Algo::MinElementBy |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Algo/MinElement.h |
| Include Path | #include "Algo/MinElement.h" |
namespace Algo
{
template<typename RangeType, typename ProjectionType, typename ComparatorType>
decltype(AlgoImpl::MinElementBy(Range, MoveTemp(Proj), MoveTemp(Comp))) Algo::MinElementBy
(
RangeType && Range,
ProjectionType Proj,
ComparatorType Comp
)
}
A pointer to the minimum element, or nullptr if the range was empty.
Parameters
| Name | Remarks |
|---|---|
| Range | The range to find the minimum element in. |
| Proj | The projection to apply to the element to use for comparison. |
| Comp | The comparator to use when comparing two elements. |