Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TArray
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
const ElementType * FindByKey
(
const KeyType& Key |
Finds an item by key (assuming the ElementType overloads operator== for the comparison). | Containers/Array.h | |
ElementType * FindByKey
(
const KeyType& Key |
Finds an item by key (assuming the ElementType overloads operator== for the comparison). | Containers/Array.h |
FindByKey(const KeyType &)
Description
Finds an item by key (assuming the ElementType overloads operator== for the comparison).
| Name | FindByKey |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
template<typename KeyType>
const ElementType * FindByKey
(
const KeyType & Key
) const
Pointer to the first matching element, or nullptr if none is found.
Parameters
| Name | Remarks |
|---|---|
| Key | The key to search by. |
See Also
- Find
FindByKey(const KeyType &)
Description
Finds an item by key (assuming the ElementType overloads operator== for the comparison). Time Complexity: O(n), starts iteration from the beginning so better performance if Key is in the front
| Name | FindByKey |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Containers/Array.h |
| Include Path | #include "Containers/Array.h" |
template<typename KeyType>
ElementType * FindByKey
(
const KeyType & Key
)
Pointer to the first matching element, or nullptr if none is found.
Parameters
| Name | Remarks |
|---|---|
| Key | The key to search by. |
See Also
- Find