FGenericPlatformMath::Min

Min 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 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