FGenericPlatformMath::Max

Max of Array

Choose your operating system:

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