FGenericPlatformMath::Min

Min 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 Min
(
    const TArray< T > & Values,
    int32 * MinIndex
)

Remarks

Min of Array

Returns

The min 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 minimum element, if multiple minimum 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