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