TArray::IndexOfByKey

Syntax

template<typename KeyType>
int32 IndexOfByKey
(
    const KeyType & Key
) const

Remarks

Finds an item by key (assuming the ElementType overloads operator== for the comparison).

Returns

Index to the first matching element, or INDEX_NONE if none is found.

Parameters

Parameter

Description

Key

The key to search by.

References

Module

Core

Header

Runtime/Core/Public/Containers/Array.h