TArrayView::IndexOfByKey

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

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/ArrayView.h

Include

#include "Containers/ArrayView.h"

Syntax

template<typename KeyType>
SizeType 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.