Navigation
API > API/Runtime > API/Runtime/Core
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
decltype(AlgoImpl::MinElementBy(Range, FIdentityFunctor(), TLess<>())) Algo::MinElement
(
RangeType&& Range |
Returns a pointer to the minimum element in a range. | Algo/MinElement.h | |
decltype(AlgoImpl::MinElementBy(Range, FIdentityFunctor(), MoveTemp(Comp))) Algo::MinElement
(
RangeType&& Range, |
Returns a pointer to the minimum element in a range with a user-defined binary comparator. | Algo/MinElement.h |
Algo::MinElement(RangeType &&)
Description
Returns a pointer to the minimum element in a range. If the range contains multiple minimum elements, a pointer to the first one will be returned.
| Name | Algo::MinElement |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Algo/MinElement.h |
| Include Path | #include "Algo/MinElement.h" |
namespace Algo
{
template<typename RangeType>
decltype, TLess <>)) Algo::MinElement
(
RangeType && Range
)
}
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. |
Algo::MinElement(RangeType &&, 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::MinElement |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Algo/MinElement.h |
| Include Path | #include "Algo/MinElement.h" |
namespace Algo
{
template<typename RangeType, typename ComparatorType>
decltype, MoveTemp)) Algo::MinElement
(
RangeType && Range,
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. |
| Comp | The comparator to use when comparing two elements. |