FGenericPlatformMath::Max

Max of Array

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h

Include

#include "GenericPlatform/GenericPlatformMath.h"

Syntax

template<class T>
static T Max
(
    const TArray< T > & Values,
    int32 * MaxIndex
)

Remarks

Max of Array

Returns

The max value found in the array or default value if the array was empty

Parameters

Parameter

Description

Array

of templated type

Optional

pointer for returning the index of the maximum element, if multiple maximum elements the first index is returned

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