FScriptMapHelper::GetKeyPtr

Returns a uint8 pointer to the Key (first element) in the map.

Windows
MacOS
Linux

References

Module

CoreUObject

Header

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

Include

#include "UObject/UnrealType.h"

Syntax

uint8 * GetKeyPtr
(
    int32 Index
)

Remarks

Returns a uint8 pointer to the Key (first element) in the map. Currently identical to GetPairPtr, but provides clarity of purpose and avoids exposing implementation details of TMap.

Returns

Pointer to the key, or nullptr if the map is empty.

Parameters

Parameter

Description

Index

index of the item to return a pointer to.

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