Algo::MaxElement

Returns a pointer to the maximum element in a range.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Algo/MaxElement.h

Include

#include "Algo/MaxElement.h"

Syntax

namespace Algo
{
    template<typename RangeType>
    auto Algo::MaxElement
    (
        RangeType & Range
    )
}

Remarks

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.

Returns

A pointer to the maximum element, or nullptr if the range was empty.

Parameters

Parameter

Description

Range

The range to find the maximum element in.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss