FScriptMapHelper::FindMapIndexWithKey

Finds the index of an element in a map which matches the key in another pair.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

/Engine/Source/Runtime/CoreUObject/Public/UObject/UnrealType.h

Include

#include "UObject/UnrealType.h"

Syntax

int32 FindMapIndexWithKey
(
    const void * PairWithKeyToFind,
    int32 IndexHint
) const

Remarks

Finds the index of an element in a map which matches the key in another pair.

Returns

The index of an element found in MapHelper, or -1 if none was found.

Parameters

Parameter

Description

PairWithKeyToFind

The address of a map pair which contains the key to search for.

IndexHint

The index to start searching from.

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